Skip to contentSkip to conversation

x86/pvh: Don't start PVH guests on AMD hosts.

PATCH New Tim Deegan 1 participant 1 message Jul 29, 2013

lore
Share & tools
lore

Tim Deegan

author
#0 lore raw

PATCH 1/1 x86/pvh: Don't start PVH guests on AMD hosts.

Nothing good will happen if we do: it's totally unimplemented.

---
 xen/arch/x86/hvm/hvm.c |    3 +++
 1 file changed, 3 insertions(+)
xen/arch/x86/hvm/hvm.c +3 -0
index c742d7b..66bbb10 100644
@@ -521,6 +521,9 @@ static int pvh_dom_initialise(struct domain *d)
     if ( !d->arch.hvm_domain.hap_enabled )
         return -EINVAL;
 
+    if ( !hvm_funcs.pvh_set_vcpu_info )
+        return -ENOSYS;
+
     spin_lock_init(&d->arch.hvm_domain.irq_lock);
 
     hvm_init_cacheattr_region_list(d);
Signature · 1 line
1.7.10.4