Skip to contentSkip to conversation

32 bit HVM guest on 64 bit hypervisor

PATCH New Ky Srinivasan 1 participant 1 message Apr 24, 2007 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 32 bit HVM guest on 64 bit hypervisor

This patch fixes the problem of loading 32 bit PV drivers for HVM guests hosted on 64 bit (x86_64) hypervisor (based on Kier's suggestion).

arch/x86/hvm/hvm.c +4 -0
@@ -1049,6 +1049,10 @@
                 break;
             case HVM_PARAM_CALLBACK_IRQ:
                 hvm_set_callback_via(d, a.value);
+#if defined(__x86_64__)
+                if (hvm_guest_x86_mode(current) == 4)
+                    d->is_compat = 1;
+#endif
                 break;
             }
             d->arch.hvm_domain.params[a.index] = a.value;

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel