summaryrefslogtreecommitdiffstats
path: root/recipes-extended/xen/files/xsa253.patch
diff options
context:
space:
mode:
authorChristopher Clark <christopher.w.clark@gmail.com>2018-07-31 12:35:42 -0700
committerBruce Ashfield <bruce.ashfield@windriver.com>2018-08-02 22:57:14 -0400
commit9955e81b23eb6bb264b32c5bb02b326097a4ec02 (patch)
tree5aa96388dcf449b2b9f5b8bce380a0e35941d42a /recipes-extended/xen/files/xsa253.patch
parent02d2c7daeb5b3edd83b850eb5397d0b297a11c8a (diff)
downloadmeta-virtualization-9955e81b23eb6bb264b32c5bb02b326097a4ec02.tar.gz
xen: upgrade to 4.10.1, and apply patches for gcc 8.1 compatibility
Adds packaging for new binary: xen-shim. Builds the hypervisor before building the tools to workaround an upstream parallel build bug that causes the shim to be rebuilt during install. Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-extended/xen/files/xsa253.patch')
-rw-r--r--recipes-extended/xen/files/xsa253.patch26
1 files changed, 0 insertions, 26 deletions
diff --git a/recipes-extended/xen/files/xsa253.patch b/recipes-extended/xen/files/xsa253.patch
deleted file mode 100644
index 19e42693..00000000
--- a/recipes-extended/xen/files/xsa253.patch
+++ /dev/null
@@ -1,26 +0,0 @@
1From: Andrew Cooper <andrew.cooper3@citrix.com>
2Subject: x86/msr: Free msr_vcpu_policy during vcpu destruction
3
4c/s 4187f79dc7 "x86/msr: introduce struct msr_vcpu_policy" introduced a
5per-vcpu memory allocation, but failed to free it in the clean vcpu
6destruction case.
7
8This is XSA-253
9
10Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
11Reviewed-by: Jan Beulich <jbeulich@suse.com>
12
13diff --git a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c
14index b17468c..0ae715d 100644
15--- a/xen/arch/x86/domain.c
16+++ b/xen/arch/x86/domain.c
17@@ -382,6 +382,9 @@ void vcpu_destroy(struct vcpu *v)
18
19 vcpu_destroy_fpu(v);
20
21+ xfree(v->arch.msr);
22+ v->arch.msr = NULL;
23+
24 if ( !is_idle_domain(v->domain) )
25 vpmu_destroy(v);
26