mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Avoid xen crash if there is no VMX support. If a platform
doesn't support VMX, creating VMX domain will crash xen HV. Signed-off-by: Xin Li <xin.b.li@intel.com>
This commit is contained in:
1 parent
e9ac3bbcca
commit
0129e126c4
3 files changed
+16
-26
No files matched your search
@@ -189,6 +189,10 @@ class VmxImageHandler(ImageHandler):
|
||||
def configure(self, imageConfig, deviceConfig):
|
||||
ImageHandler.configure(self, imageConfig, deviceConfig)
|
||||
|
||||
info = xc.xeninfo()
|
||||
if not 'hvm' in info['xen_caps']:
|
||||
raise VmError("vmx: not an Intel VT platform, we stop creating!")
|
||||
|
||||
self.dmargs = self.parseDeviceModelArgs(imageConfig, deviceConfig)
|
||||
self.device_model = sxp.child_value(imageConfig, 'device_model')
|
||||
if not self.device_model:
|
||||
|
||||