[PATCH] kvm: testsuite: test EFER.NXE

2009-03-31 Thread Avi Kivity
From: Avi Kivity a...@redhat.com Accesses with the NX bit set in a pte or pde behave differently when EFER.NXE is set or unset. Test that. Signed-off-by: Avi Kivity a...@redhat.com diff --git a/user/test/x86/access.c b/user/test/x86/access.c index 59a5756..272a4ef 100644 ---

[PATCH] kvm: testsuite: test reserved bits in mmu access tests

2009-03-31 Thread Avi Kivity
From: Avi Kivity a...@redhat.com test that reserved bits in pdes and ptes cause faults and that the expected error code is issued. Signed-off-by: Avi Kivity a...@redhat.com diff --git a/user/test/x86/access.c b/user/test/x86/access.c index 49f74b3..59a5756 100644 --- a/user/test/x86/access.c

[PATCH] KVM: MMU: Use different shadows when EFER.NXE changes

2009-03-31 Thread Avi Kivity
From: Avi Kivity a...@redhat.com A pte that is shadowed when the guest EFER.NXE=1 is not valid when EFER.NXE=0; if bit 63 is set, the pte should cause a fault, and since the shadow EFER always has NX enabled, this won't happen. Fix by using a different shadow page table for different EFER.NXE

[PATCH] KVM: remove pointless conditional before kfree() in lapic initialization

2009-03-31 Thread Avi Kivity
From: Wei Yongjun yj...@cn.fujitsu.com Remove pointless conditional before kfree(). Signed-off-by: Wei Yongjun yj...@cn.fujitsu.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index bb30169..aeb0193 100644 --- a/arch/x86/kvm/x86.c +++