|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] x86/shadow: sh_rm_write_access_from_sl1p() is HVM-only
commit 259dc9c485b80cc9cead5825dd77d6a155e666cc
Author: Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Tue Feb 24 09:15:03 2026 +0100
Commit: Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Tue Feb 24 10:29:47 2026 +0100
x86/shadow: sh_rm_write_access_from_sl1p() is HVM-only
The function is used from (HVM-only) OOS code only - replace the
respective #ifdef inside the function to make this more obvious. (Note
that SHOPT_OUT_OF_SYNC won't be set when !HVM, so the #ifdef surrounding
the function is already sufficient.)
Requested-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
Acked-by: Andrew cooper <andrew.cooper3@xxxxxxxxxx>
---
xen/arch/x86/mm/shadow/multi.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/xen/arch/x86/mm/shadow/multi.c b/xen/arch/x86/mm/shadow/multi.c
index b1cb9aad1f..853682190f 100644
--- a/xen/arch/x86/mm/shadow/multi.c
+++ b/xen/arch/x86/mm/shadow/multi.c
@@ -3435,9 +3435,7 @@ static pagetable_t cf_check sh_update_cr3(struct vcpu *v,
bool noflush)
int sh_rm_write_access_from_sl1p(struct domain *d, mfn_t gmfn,
mfn_t smfn, unsigned long off)
{
-#ifdef CONFIG_HVM
struct vcpu *curr = current;
-#endif
int r;
shadow_l1e_t *sl1p, sl1e;
struct page_info *sp;
@@ -3445,12 +3443,10 @@ int sh_rm_write_access_from_sl1p(struct domain *d,
mfn_t gmfn,
ASSERT(mfn_valid(gmfn));
ASSERT(mfn_valid(smfn));
-#ifdef CONFIG_HVM
/* Remember if we've been told that this process is being torn down */
if ( curr->domain == d && is_hvm_domain(d) )
curr->arch.paging.shadow.pagetable_dying
= mfn_to_page(gmfn)->pagetable_dying;
-#endif
sp = mfn_to_page(smfn);
--
generated by git-patchbot for /home/xen/git/xen.git#master
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |