WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: xen-devel@xxxxxxxxxxxxxxxxxxx, Keir Fraser <Keir.Fraser@xxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] [HVM] cross-vendor migration: Allow 32bit-apps run in 64bit guests (resend)
From: Christoph Egger <Christoph.Egger@xxxxxxx>
Date: Mon, 25 May 2009 15:59:13 +0200
Cc:
Delivery-date: Mon, 25 May 2009 07:00:05 -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
Hi!

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: 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
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] [HVM] cross-vendor migration: Allow 32bit-apps run in 64bit guests (resend), Christoph Egger <=