diff options
Diffstat (limited to '0016-x86-respect-mapcache_domain_init-failing.patch')
-rw-r--r-- | 0016-x86-respect-mapcache_domain_init-failing.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/0016-x86-respect-mapcache_domain_init-failing.patch b/0016-x86-respect-mapcache_domain_init-failing.patch new file mode 100644 index 0000000..db7ddfe --- /dev/null +++ b/0016-x86-respect-mapcache_domain_init-failing.patch @@ -0,0 +1,38 @@ +From dfabab2cd9461ef9d21a708461f35d2ae4b55220 Mon Sep 17 00:00:00 2001 +From: Jan Beulich <jbeulich@suse.com> +Date: Tue, 21 May 2024 10:25:08 +0200 +Subject: [PATCH 16/56] x86: respect mapcache_domain_init() failing +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +The function itself properly handles and hands onwards failure from +create_perdomain_mapping(). Therefore its caller should respect possible +failure, too. + +Fixes: 4b28bf6ae90b ("x86: re-introduce map_domain_page() et al") +Signed-off-by: Jan Beulich <jbeulich@suse.com> +Acked-by: Roger Pau Monné <roger.pau@citrix.com> +master commit: 7270fdc7a0028d4b7b26fd1b36c6b9e97abcf3da +master date: 2024-05-15 19:59:52 +0100 +--- + xen/arch/x86/domain.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c +index 307446273a..5feb0d0679 100644 +--- a/xen/arch/x86/domain.c ++++ b/xen/arch/x86/domain.c +@@ -850,7 +850,8 @@ int arch_domain_create(struct domain *d, + } + else if ( is_pv_domain(d) ) + { +- mapcache_domain_init(d); ++ if ( (rc = mapcache_domain_init(d)) != 0 ) ++ goto fail; + + if ( (rc = pv_domain_initialise(d)) != 0 ) + goto fail; +-- +2.45.2 + |