]> xenbits.xensource.com Git - xen.git/commit
x86/hvm: serialize trap injecting producer and consumer
authorJan Beulich <jbeulich@suse.com>
Wed, 25 Jan 2017 09:51:10 +0000 (10:51 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 25 Jan 2017 09:51:10 +0000 (10:51 +0100)
commit9b7c0ce58396a20f01e8db4494e967ca4cb55ed4
tree9afd5ac15eaeab22e844bc0cc341a7542243a31a
parent58cbc034dc62c2c2e10aaddfed7ef874e03bc383
x86/hvm: serialize trap injecting producer and consumer

Since injection works on a remote vCPU, and since there's no
enforcement of the subject vCPU being paused, there's a potential race
between the producing and consuming sides. Fix this by leveraging the
vector field as synchronization variable.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
[re-based]
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/dm.c
xen/arch/x86/hvm/hvm.c
xen/include/asm-x86/hvm/hvm.h