[COMMIT master] svm: Add test for NX bit check in emulated NPT

2010-09-19 Thread Avi Kivity
From: Joerg Roedel joerg.roe...@amd.com This patch adds a test to check if the NX bit is checked in the NPT emulation of KVM. Signed-off-by: Joerg Roedel joerg.roe...@amd.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/x86/svm.c b/x86/svm.c index 7c7909e..05e15b1 100644 ---

[COMMIT master] svm: Add test for selective cr0 intercept

2010-09-19 Thread Avi Kivity
From: Joerg Roedel joerg.roe...@amd.com This patch adds a test to check if the selective cr0 intercept emulation of the kvm svm emulation works. Signed-off-by: Joerg Roedel joerg.roe...@amd.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/x86/svm.c b/x86/svm.c index 2f1c900..689880d

[COMMIT master] svm: Add test for RSVD bit check in emulated NPT

2010-09-19 Thread Avi Kivity
From: Joerg Roedel joerg.roe...@amd.com This patch adds a test to check if the RSVD bits are checked in the NPT emulation of KVM. Signed-off-by: Joerg Roedel joerg.roe...@amd.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/x86/svm.c b/x86/svm.c index 04ca028..03e07e2 100644 ---

[COMMIT master] svm: Run tests with NPT enabled if available

2010-09-19 Thread Avi Kivity
From: Joerg Roedel joerg.roe...@amd.com This patch adds code to setup a nested page table which is used for all tests. Signed-off-by: Joerg Roedel joerg.roe...@amd.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/x86/svm.c b/x86/svm.c index 689880d..7c7909e 100644 --- a/x86/svm.c +++

[COMMIT master] svm: Add test for US bit check in emulated NPT

2010-09-19 Thread Avi Kivity
From: Joerg Roedel joerg.roe...@amd.com This patch adds a test to check if the US bit is checked in the NPT emulation of KVM. Signed-off-by: Joerg Roedel joerg.roe...@amd.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/x86/svm.c b/x86/svm.c index 05e15b1..04ca028 100644 ---

[COMMIT master] svm: Add test for RW bit check in emulated NPT

2010-09-19 Thread Avi Kivity
From: Joerg Roedel joerg.roe...@amd.com This patch adds a test to check if the RW bit is checked in the NPT emulation of KVM. Signed-off-by: Joerg Roedel joerg.roe...@amd.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/x86/svm.c b/x86/svm.c index 03e07e2..3421736 100644 ---

[COMMIT master] svm: Add test for the NPT page table walker

2010-09-19 Thread Avi Kivity
From: Joerg Roedel joerg.roe...@amd.com This patch adds a test to check if NPT faults that occur while walking the guest page table are reported correctly. Signed-off-by: Joerg Roedel joerg.roe...@amd.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/x86/svm.c b/x86/svm.c index