Accepting request 33724 from Virtualization
checked in (request 33724) OBS-URL: https://build.opensuse.org/request/show/33724 OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=33
This commit is contained in:
committed by
Git OBS Bridge
parent
8b260f874c
commit
7d0b7344dd
@@ -1,5 +1,8 @@
|
||||
%patch
|
||||
Index: xen-4.0.0-testing/xen/include/asm-x86/hvm/hvm_extensions.h
|
||||
===================================================================
|
||||
--- /dev/null
|
||||
+++ b/xen/include/asm-x86/hvm/hvm_extensions.h
|
||||
+++ xen-4.0.0-testing/xen/include/asm-x86/hvm/hvm_extensions.h
|
||||
@@ -0,0 +1,183 @@
|
||||
+/****************************************************************************
|
||||
+ |
|
||||
@@ -184,13 +187,17 @@
|
||||
+int hyperx_initialize(struct domain *d);
|
||||
+
|
||||
+#endif
|
||||
Index: xen-4.0.0-testing/xen/arch/x86/hvm/hyperv/Makefile
|
||||
===================================================================
|
||||
--- /dev/null
|
||||
+++ b/xen/arch/x86/hvm/hyperv/Makefile
|
||||
+++ xen-4.0.0-testing/xen/arch/x86/hvm/hyperv/Makefile
|
||||
@@ -0,0 +1,2 @@
|
||||
+obj-y += hv_intercept.o
|
||||
+obj-y += hv_hypercall.o
|
||||
Index: xen-4.0.0-testing/xen/arch/x86/hvm/hyperv/hv_errno.h
|
||||
===================================================================
|
||||
--- /dev/null
|
||||
+++ b/xen/arch/x86/hvm/hyperv/hv_errno.h
|
||||
+++ xen-4.0.0-testing/xen/arch/x86/hvm/hyperv/hv_errno.h
|
||||
@@ -0,0 +1,62 @@
|
||||
+/****************************************************************************
|
||||
+ |
|
||||
@@ -254,8 +261,10 @@
|
||||
+#define HV_STATUS_NO_MEMORY_256PAGES 0x0103
|
||||
+#define HV_STATUS_NO_MEMORY_1024PAGES 0x0104
|
||||
+#endif
|
||||
Index: xen-4.0.0-testing/xen/arch/x86/hvm/hyperv/hv_hypercall.c
|
||||
===================================================================
|
||||
--- /dev/null
|
||||
+++ b/xen/arch/x86/hvm/hyperv/hv_hypercall.c
|
||||
+++ xen-4.0.0-testing/xen/arch/x86/hvm/hyperv/hv_hypercall.c
|
||||
@@ -0,0 +1,153 @@
|
||||
+/****************************************************************************
|
||||
+ |
|
||||
@@ -410,8 +419,10 @@
|
||||
+ return;
|
||||
+ }
|
||||
+}
|
||||
Index: xen-4.0.0-testing/xen/arch/x86/hvm/hyperv/hv_hypercall.h
|
||||
===================================================================
|
||||
--- /dev/null
|
||||
+++ b/xen/arch/x86/hvm/hyperv/hv_hypercall.h
|
||||
+++ xen-4.0.0-testing/xen/arch/x86/hvm/hyperv/hv_hypercall.h
|
||||
@@ -0,0 +1,46 @@
|
||||
+/****************************************************************************
|
||||
+ |
|
||||
@@ -459,8 +470,10 @@
|
||||
+#define HV_NOTIFY_LONG_SPIN_WAIT 0x0008
|
||||
+
|
||||
+#endif /* HV_HYPERCALL_H */
|
||||
Index: xen-4.0.0-testing/xen/arch/x86/hvm/hyperv/hv_intercept.c
|
||||
===================================================================
|
||||
--- /dev/null
|
||||
+++ b/xen/arch/x86/hvm/hyperv/hv_intercept.c
|
||||
+++ xen-4.0.0-testing/xen/arch/x86/hvm/hyperv/hv_intercept.c
|
||||
@@ -0,0 +1,1009 @@
|
||||
+/****************************************************************************
|
||||
+ |
|
||||
@@ -634,7 +647,7 @@
|
||||
+ printk("Hyperv dom create failed\n");
|
||||
+ return (1);
|
||||
+ }
|
||||
+ for (i = 0; i < d->max_vcpus; i++)
|
||||
+ for (i=0; i < MAX_VIRT_CPUS; i++)
|
||||
+ {
|
||||
+ if (d->vcpu[i] != NULL)
|
||||
+ {
|
||||
@@ -710,7 +723,7 @@
|
||||
+static inline u32
|
||||
+hv_get_max_vcpus_supported(void)
|
||||
+{
|
||||
+ return HVM_MAX_VCPUS;
|
||||
+ return (MAX_VIRT_CPUS);
|
||||
+}
|
||||
+
|
||||
+
|
||||
@@ -916,7 +929,7 @@
|
||||
+ ASSERT(curp != NULL);
|
||||
+#ifdef HV_STATS
|
||||
+ printk("DUMP STATS\n");
|
||||
+ for (i = 0; i < d->max_vcpus; i++)
|
||||
+ for (i=0; i < MAX_VIRT_CPUS; i++)
|
||||
+ if (d->vcpu[i] != NULL)
|
||||
+ hv_print_stats(curp, i);
|
||||
+#endif
|
||||
@@ -1471,9 +1484,11 @@
|
||||
+ hvm_inject_exception(TRAP_gp_fault, 0, 0);
|
||||
+ return (1);
|
||||
+}
|
||||
Index: xen-4.0.0-testing/xen/arch/x86/hvm/hyperv/hv_shim.h
|
||||
===================================================================
|
||||
--- /dev/null
|
||||
+++ b/xen/arch/x86/hvm/hyperv/hv_shim.h
|
||||
@@ -0,0 +1,286 @@
|
||||
+++ xen-4.0.0-testing/xen/arch/x86/hvm/hyperv/hv_shim.h
|
||||
@@ -0,0 +1,285 @@
|
||||
+/****************************************************************************
|
||||
+ |
|
||||
+ | Copyright (c) [2007, 2008] Novell, Inc.
|
||||
@@ -1513,7 +1528,6 @@
|
||||
+#include <asm/domain.h>
|
||||
+#include <asm/shadow.h>
|
||||
+#include <public/xen.h>
|
||||
+#include <public/hvm/hvm_info_table.h>
|
||||
+
|
||||
+#include "hv_hypercall.h"
|
||||
+
|
||||
@@ -1690,7 +1704,7 @@
|
||||
+ * Each VCPU here corresponds to the vcpu in the underlying hypervisor;
|
||||
+ * they share the same ID.
|
||||
+ */
|
||||
+ hv_vcpu_t vcpu_state[HVM_MAX_VCPUS];
|
||||
+ hv_vcpu_t vcpu_state[MAX_VIRT_CPUS];
|
||||
+} hv_partition_t;
|
||||
+
|
||||
+
|
||||
|
Reference in New Issue
Block a user