]> xenbits.xensource.com Git - xen.git/commit
x86/hvm: Fix Misra Rule 19.1 regression
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 24 Sep 2024 12:51:24 +0000 (14:51 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 24 Sep 2024 12:51:24 +0000 (14:51 +0200)
commit6c2827e1330ecf37756391f2e080494e9b0076d4
tree04331f656a25e2182a8568652338e8b3b933f277
parent5210dc1c303dcd36ee59ad43325f615cc1e78231
x86/hvm: Fix Misra Rule 19.1 regression

Despite noticing an impending Rule 19.1 violation, the adjustment made (the
uint32_t cast) wasn't sufficient to avoid it.  Try again.

Subsequently noticed by Coverity too.

Fixes: 6a98383b0877 ("x86/HVM: clear upper halves of GPRs upon entry from 32-bit code")
Coverity-IDs: 1596289 thru 1596298
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
master commit: d0a718a45f14b86471d8eb3083acd72760963470
master date: 2024-04-11 13:23:08 +0100
xen/arch/x86/include/asm/hvm/hvm.h