From: Christoph Egger Subject: [PATCH] xen: move viridian defines to header Date: Thu, 1 Apr 2010 10:30:59 +0200 Message-ID: <201004011030.59969.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_DnFtLTK2rvQL/ZO" 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 --Boundary-00=_DnFtLTK2rvQL/ZO Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi! Attached patch moves viridian defines into viridian header. Signed-off-by: Christoph Egger -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Andrew Bowd, Thomas M. McCoy, Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 --Boundary-00=_DnFtLTK2rvQL/ZO Content-Type: text/x-diff; charset="iso 8859-15"; name="xen_viridian.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen_viridian.diff" diff -r e5e1e1532b97 xen/arch/x86/hvm/viridian.c --- a/xen/arch/x86/hvm/viridian.c Wed Mar 31 10:21:19 2010 +0100 +++ b/xen/arch/x86/hvm/viridian.c Thu Apr 01 10:08:01 2010 +0200 @@ -12,18 +12,10 @@ #include #include #include +#include #include #include -/* Viridian MSR numbers. */ -#define VIRIDIAN_MSR_GUEST_OS_ID 0x40000000 -#define VIRIDIAN_MSR_HYPERCALL 0x40000001 -#define VIRIDIAN_MSR_VP_INDEX 0x40000002 -#define VIRIDIAN_MSR_EOI 0x40000070 -#define VIRIDIAN_MSR_ICR 0x40000071 -#define VIRIDIAN_MSR_TPR 0x40000072 -#define VIRIDIAN_MSR_APIC_ASSIST 0x40000073 - /* Viridian Hypercall Status Codes. */ #define HV_STATUS_SUCCESS 0x0000 #define HV_STATUS_INVALID_HYPERCALL_CODE 0x0002 diff -r e5e1e1532b97 xen/include/asm-x86/hvm/viridian.h --- a/xen/include/asm-x86/hvm/viridian.h Wed Mar 31 10:21:19 2010 +0100 +++ b/xen/include/asm-x86/hvm/viridian.h Thu Apr 01 10:08:01 2010 +0200 @@ -39,6 +39,15 @@ struct viridian_domain union viridian_hypercall_gpa hypercall_gpa; }; +/* Viridian MSR numbers. */ +#define VIRIDIAN_MSR_GUEST_OS_ID 0x40000000 +#define VIRIDIAN_MSR_HYPERCALL 0x40000001 +#define VIRIDIAN_MSR_VP_INDEX 0x40000002 +#define VIRIDIAN_MSR_EOI 0x40000070 +#define VIRIDIAN_MSR_ICR 0x40000071 +#define VIRIDIAN_MSR_TPR 0x40000072 +#define VIRIDIAN_MSR_APIC_ASSIST 0x40000073 + int cpuid_viridian_leaves( unsigned int leaf, --Boundary-00=_DnFtLTK2rvQL/ZO 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 --Boundary-00=_DnFtLTK2rvQL/ZO--