Skip to content

Commit 5ecad24

Browse files
committed
KVM: x86: bit 8 of non-leaf PDPEs is not reserved
Bit 8 would be the "global" bit, which does not quite make sense for non-leaf page table entries. Intel ignores it; AMD ignores it in PDEs and PDPEs, but reserves it in PML4Es. Probably, earlier versions of the AMD manual documented it as reserved in PDPEs as well, and that behavior made it into KVM as well as kvm-unit-tests; fix it. Cc: [email protected] Reported-by: Nadav Amit <[email protected]> Fixes: a0c0feb ("KVM: x86: reserve bit 8 of non-leaf PDPEs and PML4Es in 64-bit mode on AMD", 2014-09-03) Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 9d3c447 commit 5ecad24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kvm/mmu/mmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4449,7 +4449,7 @@ __reset_rsvds_bits_mask(struct kvm_vcpu *vcpu,
44494449
nonleaf_bit8_rsvd | rsvd_bits(7, 7) |
44504450
rsvd_bits(maxphyaddr, 51);
44514451
rsvd_check->rsvd_bits_mask[0][2] = exb_bit_rsvd |
4452-
nonleaf_bit8_rsvd | gbpages_bit_rsvd |
4452+
gbpages_bit_rsvd |
44534453
rsvd_bits(maxphyaddr, 51);
44544454
rsvd_check->rsvd_bits_mask[0][1] = exb_bit_rsvd |
44554455
rsvd_bits(maxphyaddr, 51);

0 commit comments

Comments
 (0)