File 0063-include-hw-i386-pc.h-fix-v2.12-era-.patch of Package qemu-testsuite

From: Bruce Rogers <brogers@suse.com>
Date: Thu, 15 Aug 2019 14:56:09 -0600
Subject: include/hw/i386/pc.h: fix v2.12 era compat xlevel settings

SEV enabled guests which used v2.12 or older machine types are now getting
the wrong xlevel set now that we've updated the QEMU version to v3.1.1.
I brought this up with upstream, and Eduardo H. pointed out that where
it specified xlevel, it should have been min-xlevel. Fix that.

[BR: BSC#1144087]
Signed-off-by: Bruce Rogers <brogers@suse.com>
---
 include/hw/i386/pc.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h
index 136fe497b6b2704f6005f4813af6..367da5bc069f2a62c552f6a32a1a 100644
--- a/include/hw/i386/pc.h
+++ b/include/hw/i386/pc.h
@@ -322,11 +322,11 @@ bool e820_get_entry(int, uint32_t, uint64_t *, uint64_t *);
         .value    = "off",\
     },{\
         .driver   = "EPYC-" TYPE_X86_CPU,\
-        .property = "xlevel",\
+        .property = "min-xlevel",\
         .value    = stringify(0x8000000a),\
     },{\
         .driver   = "EPYC-IBPB-" TYPE_X86_CPU,\
-        .property = "xlevel",\
+        .property = "min-xlevel",\
         .value    = stringify(0x8000000a),\
     },
 
openSUSE Build Service is sponsored by