projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec66624
)
x86/hvm: Add check for cpu_has_vmx_virt_exceptions
author
Alexandru Isaila
<aisaila@bitdefender.com>
Tue, 25 Sep 2018 09:10:38 +0000
(12:10 +0300)
committer
Andrew Cooper
<andrew.cooper3@citrix.com>
Tue, 25 Sep 2018 10:59:32 +0000
(11:59 +0100)
This is useful so HVMOP_altp2m_vcpu_enable_notify will fail and not
silently succeed. It save a call to HVMOP_altp2m_set_suppress_ve.
Signed-off-by: Alexandru Isaila <aisaila@bitdefender.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/hvm.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/hvm/hvm.c
b/xen/arch/x86/hvm/hvm.c
index 9a490ef68c5171140bc5679e756036fd77f51666..51fc3ec07f0e90cd0c970bddefe4631426cff38a 100644
(file)
--- a/
xen/arch/x86/hvm/hvm.c
+++ b/
xen/arch/x86/hvm/hvm.c
@@
-4561,6
+4561,12
@@
static int do_altp2m_op(
break;
}
+ if ( !cpu_has_vmx_virt_exceptions )
+ {
+ rc = -EOPNOTSUPP;
+ break;
+ }
+
v = d->vcpu[a.u.enable_notify.vcpu_id];
if ( !gfn_eq(vcpu_altp2m(v).veinfo_gfn, INVALID_GFN) ||