[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH v2 05/14] x86/mm/shadow: do not open-code PAGE_CACHE_ATTRS
This makes the code easier to understand. Acked-by: Jan Beulich <jbeulich@xxxxxxxx> Signed-off-by: Demi Marie Obenour <demi@xxxxxxxxxxxxxxxxxxxxxx> --- xen/arch/x86/mm/shadow/multi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/mm/shadow/multi.c b/xen/arch/x86/mm/shadow/multi.c index 4e94fec3d50cde0e5a26ecb62ff4d00dd00f759d..6bb564b0145285afc93b72a60b7797fcfe8696dc 100644 --- a/xen/arch/x86/mm/shadow/multi.c +++ b/xen/arch/x86/mm/shadow/multi.c @@ -535,7 +535,7 @@ _sh_propagate(struct vcpu *v, if ( guest_nx_enabled(v) ) pass_thru_flags |= _PAGE_NX_BIT; if ( level == 1 && !shadow_mode_refcounts(d) && mmio_mfn ) - pass_thru_flags |= _PAGE_PAT | _PAGE_PCD | _PAGE_PWT; + pass_thru_flags |= PAGE_CACHE_ATTRS; sflags = gflags & pass_thru_flags; /* @@ -548,7 +548,7 @@ _sh_propagate(struct vcpu *v, { int type; - ASSERT(!(sflags & (_PAGE_PAT | _PAGE_PCD | _PAGE_PWT))); + ASSERT(!(sflags & PAGE_CACHE_ATTRS)); /* compute the PAT index for shadow page entry when VT-d is enabled * and device assigned. -- Sincerely, Demi Marie Obenour (she/her/hers) Invisible Things Lab
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |