Skip to content
Commit 362505de authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

KVM: x86/mmu: store shadow EFER.NX in the MMU role



Now that the MMU role is separate from the CPU role, it can be a
truthful description of the format of the shadow pages.  This includes
whether the shadow pages use the NX bit; so force the efer_nx field
of the MMU role when TDP is disabled, and remove the hardcoding it in
the callers of reset_shadow_zero_bits_mask.

In fact, the initialization of reserved SPTE bits can now be made common
to shadow paging and shadow NPT; move it to shadow_mmu_init_context.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent f417e145
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment