aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <morbo@google.com>2020-02-26 01:44:26 -0800
committerPaolo Bonzini <pbonzini@redhat.com>2020-02-28 12:11:11 +0100
commit86d24fa60a173b1ae5f71f2aa8310f3a9ca32e39 (patch)
treed349e7a7b68e9c0b77c71c2099a3007725b3b5df
parent576718d036f52b93dbd8a517e6761c08ada09e2f (diff)
downloadkvm-unit-tests-86d24fa60a173b1ae5f71f2aa8310f3a9ca32e39.tar.gz
svm: change operand to output-only for matching constraint
According to GNU extended asm documentation, "the two operands [of matching constraints] must include one input-only operand and one output-only operand." So remove the read/write modifier from the output constraint. Signed-off-by: Bill Wendling <morbo@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--x86/svm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/x86/svm.c b/x86/svm.c
index aa3d995..ae85194 100644
--- a/x86/svm.c
+++ b/x86/svm.c
@@ -288,8 +288,8 @@ static void test_run(struct test *test, struct vmcb *vmcb)
"cli \n\t"
"stgi"
: // inputs clobbered by the guest:
- "+D" (the_test), // first argument register
- "+b" (the_vmcb) // callee save register!
+ "=D" (the_test), // first argument register
+ "=b" (the_vmcb) // callee save register!
: [test] "0" (the_test),
[vmcb_phys] "1"(the_vmcb),
[PREPARE_GIF_CLEAR] "i" (offsetof(struct test, prepare_gif_clear))