This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-devel] [PATCH] [HVM] cross-vendor migration: Allow 32bit-apps run i

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] [HVM] cross-vendor migration: Allow 32bit-apps run in 64bit guests
From: Christoph Egger <Christoph.Egger@xxxxxxx>
Date: Mon, 6 Apr 2009 11:24:42 +0200
Delivery-date: Mon, 06 Apr 2009 02:25:31 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.7

Attached patch makes cross-vendor migration demoable with 32bit applications
in 64bit guests which use sysenter/sysexit/syscall instructions.

Changes the patch includes:
  - SVM: intercept SYSENTER MSRs and emulate them
  - SVM: use permament 64bit storage for SYSENTER MSR emulation.
         SYSENTER fields in VMCB are not "permament" since upper 32bits
         are undefined and get cleared when a VMRUN/VMEXIT is between
         a write and read access.
  - SVM: improve debugging aid: dump CPU registers
  - x86_emulate: emulate sysenter/sysexit/syscall instructions
  - SVM/VMX: Intercept #UD and invoke instruction emulation
  - x86_emulate: cache current vcpu through the whole emulation path

Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx>

---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Jochen Polster, Thomas M. McCoy, Giuliano Meroni
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632

Attachment: xen_emulate.diff
Description: Text Data

Xen-devel mailing list
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] [HVM] cross-vendor migration: Allow 32bit-apps run in 64bit guests, Christoph Egger <=