|   xen-devel
[Xen-devel]  RFC: Nested VMX patch series 01: data structure 
| To: | "Dong, Eddie" <eddie.dong@xxxxxxxxx>, Tim Deegan <Tim.Deegan@xxxxxxxxxx>, 	Keir Fraser <keir@xxxxxxx> |  
| Subject: | [Xen-devel]  RFC: Nested VMX patch series 01: data structure |  
| From: | "Dong, Eddie" <eddie.dong@xxxxxxxxx> |  
| Date: | Wed, 1 Jun 2011 11:49:42 +0800 |  
| Accept-language: | en-US |  
| Acceptlanguage: | en-US |  
| Cc: | "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "Dong,	Eddie" <eddie.dong@xxxxxxxxx>, "He, Qing" <qing.he@xxxxxxxxx> |  
| Delivery-date: | Tue, 31 May 2011 20:51:37 -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> |  
| References: | <osstest-7468-mainreport@xxxxxxx> |  
| Sender: | xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |  
| Thread-index: | AcwgAhjDwUdZ/2BOTBqtK+IA8ti/WgAC9edgAAAdViAAAA3MIA== |  
| Thread-topic: | [Xen-devel]  RFC: Nested VMX patch series 01: data structure |  
| 
Thanks, Eddie
        Signed-off-by: Qing He <qing.he@xxxxxxxxx>
        Signed-off-by: Eddie Dong <eddie.dong@xxxxxxxxx>
diff -r 9aa31694b91e xen/include/asm-x86/hvm/vcpu.h
--- a/xen/include/asm-x86/hvm/vcpu.h    Tue May 31 17:58:09 2011 +0800
+++ b/xen/include/asm-x86/hvm/vcpu.h    Tue May 31 18:00:58 2011 +0800
@@ -24,6 +24,7 @@
 #include <asm/hvm/io.h>
 #include <asm/hvm/vlapic.h>
 #include <asm/hvm/vmx/vmcs.h>
+#include <asm/hvm/vmx/vvmx.h>
 #include <asm/hvm/svm/vmcb.h>
 #include <asm/hvm/svm/nestedsvm.h>
 #include <asm/mtrr.h>
@@ -57,6 +58,7 @@
     /* SVM/VMX arch specific */
     union {
         struct nestedsvm nsvm;
+        struct nestedvmx nvmx;
     } u;
 
     bool_t nv_flushp2m; /* True, when p2m table must be flushed */
diff -r 9aa31694b91e xen/include/asm-x86/hvm/vmx/vvmx.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/xen/include/asm-x86/hvm/vmx/vvmx.h        Tue May 31 18:00:58 2011 +0800
@@ -0,0 +1,41 @@
+
+/*
+ * vvmx.h: Support virtual VMX for nested virtualization.
+ *
+ * Copyright (c) 2010, Intel Corporation.
+ * Author: Qing He <qing.he@xxxxxxxxx>
+ *         Eddie Dong <eddie.dong@xxxxxxxxx>
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms and conditions of the GNU General Public License,
+ * version 2, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+ * Place - Suite 330, Boston, MA 02111-1307 USA.
+ *
+ */
+#ifndef __ASM_X86_HVM_VVMX_H__
+#define __ASM_X86_HVM_VVMX_H__
+
+struct vmcs_struct;
+
+struct nestedvmx {
+    paddr_t    vmxon_region_pa;
+    void       *iobitmap[2];           /* map (va) of L1 guest I/O bitmap */
+    /* deferred nested interrupt */
+    struct {
+        unsigned long intr_info;
+        u32           error_code;
+    } intr;
+};
+
+#define nvcpu_2_nvmx(nv)       ((*(nv)).u.nvmx)
+#define vcpu_2_nvmx(v) (nvcpu_2_nvmx(&vcpu_nestedhvm(v)))
+#endif /* __ASM_X86_HVM_VVMX_H__ */
+
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
 | 
 
| <Prev in Thread] | Current Thread | [Next in Thread> |  | 
[Xen-devel] [xen-4.1-testing test] 7468: tolerable FAIL - PUSHED, xen . org
[Xen-devel] pre-cleanup1  for nested VMX, Dong, Eddie
[Xen-devel] pre-cleanup2  for nested VMX, Dong, Eddie
[Xen-devel]  RFC: Nested VMX patch series 01: data structure,
Dong, Eddie <=
[Xen-devel]  RFC: Nested VMX patch series 02: wrap APIs, Dong, Eddie
[Xen-devel]  RFC: Nested VMX patch series 03: vmxon_off, Dong, Eddie
[Xen-devel]  RFC: Nested VMX patch series 05: vmptrld, Dong, Eddie
[Xen-devel]  RFC: Nested VMX patch series 04: virtual VMCS	structure and APIs, Dong, Eddie
RE: [Xen-devel]  RFC: Nested VMX patch series 05: vmptrst, Dong, Eddie
[Xen-devel]  RFC: Nested VMX patch series 07: vmclear, Dong, Eddie
[Xen-devel]  RFC: Nested VMX patch series 08: vmwrite, Dong, Eddie
RE: [Xen-devel]  RFC: Nested VMX patch series 09: vmread, Dong, Eddie
[Xen-devel]  RFC: Nested VMX patch series 10: vmcs switching API, Dong, Eddie
[Xen-devel]  RFC: Nested VMX patch series 11: vmresume, Dong, Eddie
 |  |  |