summaryrefslogtreecommitdiff
blob: 111b063f9c1d5904628e85b7784248cf7c0ba929 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- xen-4.11.1/xen/drivers/passthrough/vtd/vtd.h.orig	2018-11-29 14:04:11.000000000 +0000
+++ xen-4.11.1/xen/drivers/passthrough/vtd/vtd.h	2019-02-05 21:32:50.056774501 +0000
@@ -28,7 +28,7 @@
 /* Allow for both IOAPIC and IOSAPIC. */
 #define IO_xAPIC_route_entry IO_APIC_route_entry
 
-struct IO_APIC_route_remap_entry {
+struct __packed IO_APIC_route_remap_entry {
     union {
         u64 val;
         struct {
--- xen-4.11.1/xen/common/trace.c.orig	2018-11-29 14:04:11.000000000 +0000
+++ xen-4.11.1/xen/common/trace.c	2019-02-06 20:31:27.370256971 +0000
@@ -819,7 +819,7 @@
 void __trace_hypercall(uint32_t event, unsigned long op,
                        const xen_ulong_t *args)
 {
-    struct __packed {
+    struct {
         uint32_t op;
         uint32_t args[6];
     } d;
--- xen-4.11.1/xen/arch/x86/cpu/mtrr/generic.c.orig	2018-11-29 14:04:11.000000000 +0000
+++ xen-4.11.1/xen/arch/x86/cpu/mtrr/generic.c	2019-02-10 19:24:09.378805103 +0000
@@ -171,6 +171,9 @@
 	printk("%sMTRR variable ranges %sabled:\n", level,
 	       mtrr_state.enabled ? "en" : "dis");
 	width = (paddr_bits - PAGE_SHIFT + 3) / 4;
+	if (  width > 64 ) {
+		width=64;
+	}
 
 	for (i = 0; i < num_var_ranges; ++i) {
 		if (mtrr_state.var_ranges[i].mask & MTRR_PHYSMASK_VALID)