Shifting a negative signed value is undefined. Use a shift of an unsigned value instead. Signed-off-by: Bill Wendling <morbo@xxxxxxxxxx> --- x86/svm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x86/svm.c b/x86/svm.c index ae85194..17be4b0 100644 --- a/x86/svm.c +++ b/x86/svm.c @@ -1148,7 +1148,7 @@ static bool npt_rw_l1mmio_check(struct test *test) } #define TSC_ADJUST_VALUE (1ll << 32) -#define TSC_OFFSET_VALUE (-1ll << 48) +#define TSC_OFFSET_VALUE (~0ull << 48) static bool ok; static void tsc_adjust_prepare(struct test *test) -- 2.25.0.265.gbab2e86ba0-goog