Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149357808
D46079.1789917015.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D46079.1789917015.diff
View Options
diff --git a/sys/arm64/vmm/vmm_hyp.c b/sys/arm64/vmm/vmm_hyp.c
--- a/sys/arm64/vmm/vmm_hyp.c
+++ b/sys/arm64/vmm/vmm_hyp.c
@@ -220,6 +220,7 @@
hypctx->tf.tf_spsr = READ_SPECIALREG(spsr_el2);
if (guest) {
hypctx->tf.tf_esr = READ_SPECIALREG(esr_el2);
+ hypctx->par_el1 = READ_SPECIALREG(par_el1);
}
/* Store the guest special registers */
@@ -232,7 +233,6 @@
hypctx->csselr_el1 = READ_SPECIALREG(csselr_el1);
hypctx->mdccint_el1 = READ_SPECIALREG(mdccint_el1);
hypctx->mdscr_el1 = READ_SPECIALREG(mdscr_el1);
- hypctx->par_el1 = READ_SPECIALREG(par_el1);
if (guest_or_nonvhe(guest)) {
hypctx->elr_el1 = READ_SPECIALREG(EL1_REG(ELR));
@@ -279,7 +279,6 @@
WRITE_SPECIALREG(csselr_el1, hypctx->csselr_el1);
WRITE_SPECIALREG(mdccint_el1, hypctx->mdccint_el1);
WRITE_SPECIALREG(mdscr_el1, hypctx->mdscr_el1);
- WRITE_SPECIALREG(par_el1, hypctx->par_el1);
if (guest_or_nonvhe(guest)) {
WRITE_SPECIALREG(EL1_REG(ELR), hypctx->elr_el1);
@@ -302,6 +301,10 @@
WRITE_SPECIALREG(EL1_REG(TTBR1), hypctx->ttbr1_el1);
}
+ if (guest) {
+ WRITE_SPECIALREG(par_el1, hypctx->par_el1);
+ }
+
WRITE_SPECIALREG(cptr_el2, hypctx->cptr_el2);
WRITE_SPECIALREG(vpidr_el2, hypctx->vpidr_el2);
WRITE_SPECIALREG(vmpidr_el2, hypctx->vmpidr_el2);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Sep 20, 3:10 PM (22 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29819579
Default Alt Text
D46079.1789917015.diff (1 KB)
Attached To
Mode
D46079: arm64/vmm: Only store the guest par_el1
Attached
Detach File
Event Timeline
Log In to Comment