From: "Ky Srinivasan" Subject: [PATCH] 32 bit HVM guest on 64 bit hypervisor Date: Tue, 24 Apr 2007 13:27:59 -0600 Message-ID: <462E11CB.E57C.0030.0@novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part7552102F.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --=__Part7552102F.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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). Signed-off-by: K. Y. Srinivasan --=__Part7552102F.0__= Content-Type: text/plain; name="32on64hvm.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="32on64hvm.patch" --- xen/arch/x86/hvm/hvm.c 2007-04-24 12:22:28.000000000 -0400 +++ xen.new/arch/x86/hvm/hvm.c 2007-04-24 13:58:03.000000000 -0400 @@ -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) =3D=3D 4) + d->is_compat =3D 1; +#endif break; } d->arch.hvm_domain.params[a.index] =3D a.value; --=__Part7552102F.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__Part7552102F.0__=--