e the page
table is set with USER flag. If SMEP is still enabled in this case,
guest will meet unhandlable page fault and then crash.
Signed-off-by: Dongxiao Xu
Signed-off-by: Xiantao Zhang
---
arch/x86/kvm/vmx.c |8
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/arch/x8
unhandlable page fault and then crash.
Signed-off-by: Dongxiao Xu
Signed-off-by: Xiantao Zhang
---
arch/x86/kvm/vmx.c |8
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 9120ae1..e82f20d 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch
handle_vmread() and handle_vmwrite()
functions.
Thanks,
Dongxiao
Dongxiao Xu (4):
nested vmx: clean up for vmcs12 read and write
nested vmx: clean up for nested_cpu_has_xxx functions
nested vmx: use vmcs12_read/write() to operate VMCS fields
nested vmx: use a list to store the launched vmcs12
This is a preparation for the later change, which use vmcs12_read()
and vmcs12_write() to replace the way to access vmcs12 fields.
Since the above functions uses 'vcpu' as parameter, we also use
'vcpu' as the parameter in nested_cpu_has_xxx functions.
Signed-off-by: Dongxi
When referencing vmcs12 fields, the current approach is to use
"struct.field" style. This commit replace all the current solution
by calling vmcs12_read() and vmcs12_write() fucntions.
Signed-off-by: Dongxiao Xu
---
arch/x86/kvm/vm
abstract vmcs12_read and vmcs12_write functions to do the vmcs12
read/write operations.
Signed-off-by: Dongxiao Xu
---
arch/x86/kvm/vmx.c | 85 +---
1 files changed, 41 insertions(+), 44 deletions(-)
diff --git a/arch/x86/kvm/vmx.c b/arch/x86
The launch state is not a member in the VMCS area, use a separate
variable (list) to store it instead.
Signed-off-by: Dongxiao Xu
---
arch/x86/kvm/vmx.c | 86 +---
1 files changed, 81 insertions(+), 5 deletions(-)
diff --git a/arch/x86/kvm
This patch series clean up and restructure part of the nested vmx code.
The main purpose is to abstract the vmcs12_read() and vmcs12_write() functions.
With this change, we have a unified API to get/set field values from/to vmcs12.
Thanks,
Dongxiao
Dongxiao Xu (4):
nested vmx: clean up for
The launch state is not a member in the VMCS area, use a separate
variable (list) to store it instead.
Signed-off-by: Dongxiao Xu
---
arch/x86/kvm/vmx.c | 86 +---
1 files changed, 81 insertions(+), 5 deletions(-)
diff --git a/arch/x86/kvm
When referencing vmcs12 fields, the current approach is to use
"struct.field" style. This commit replace all the current solution
by calling vmcs12_read() and vmcs12_write() fucntions.
Signed-off-by: Dongxiao Xu
---
arch/x86/kvm/vm
This is a preparation for the later change, which use vmcs12_read()
and vmcs12_write() to replace the way to access vmcs12 fields.
Since the above functions uses 'vcpu' as parameter, we also use
'vcpu' as the parameter in nested_cpu_has_xxx functions.
Signed-off-by: Dongxi
abstract vmcs12_read and vmcs12_write functions to do the vmcs12
read/write operations.
Signed-off-by: Dongxiao Xu
---
arch/x86/kvm/vmx.c | 86 +++-
1 files changed, 45 insertions(+), 41 deletions(-)
diff --git a/arch/x86/kvm/vmx.c b/arch/x86
12 matches
Mail list logo