diff --git a/patches.suse/KVM-x86-fix-incorrect-comparison-in-trace-event.patch b/patches.suse/KVM-x86-fix-incorrect-comparison-in-trace-event.patch new file mode 100644 index 0000000..b301526 --- /dev/null +++ b/patches.suse/KVM-x86-fix-incorrect-comparison-in-trace-event.patch @@ -0,0 +1,32 @@ +Patch-mainline: v5.6-rc4 +Git-commit: 147f1a1fe5d7e6b01b8df4d0cbd6f9eaf6b6c73b +References: git-fixes +From: Paolo Bonzini +Date: Thu, 13 Feb 2020 18:24:48 +0100 +Subject: [PATCH] KVM: x86: fix incorrect comparison in trace event + +The "u" field in the event has three states, -1/0/1. Using u8 however means that +comparison with -1 will always fail, so change to signed char. + +Signed-off-by: Paolo Bonzini +Signed-off-by: Juergen Gross +--- + arch/x86/kvm/mmutrace.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/arch/x86/kvm/mmutrace.h b/arch/x86/kvm/mmutrace.h +index 3c6522b84ff1..ffcd96fc02d0 100644 +--- a/arch/x86/kvm/mmutrace.h ++++ b/arch/x86/kvm/mmutrace.h +@@ -339,7 +339,7 @@ TRACE_EVENT( + /* These depend on page entry type, so compute them now. */ + __field(bool, r) + __field(bool, x) +- __field(u8, u) ++ __field(signed char, u) + ), + + TP_fast_assign( +-- +2.35.3 + diff --git a/series.conf b/series.conf index 21e3f3f..a652cdb 100644 --- a/series.conf +++ b/series.conf @@ -55462,6 +55462,7 @@ patches.suse/0001-ext4-fix-mount-failure-with-quota-configured-as-modu.patch patches.suse/0002-Btrfs-fix-btrfs_wait_ordered_range-so-that-it-waits-.patch patches.suse/floppy-check-FDC-index-for-errors-before-assigning-i.patch + patches.suse/KVM-x86-fix-incorrect-comparison-in-trace-event.patch patches.suse/kvm-svm-fix-potential-memory-leak-in-svm_cpu_init patches.suse/kvm-nvmx-don-t-emulate-instructions-in-guest-mode patches.suse/kvm-nvmx-refactor-io-bitmap-checks-into-helper-function