> -Original Message-
> From: Jan Beulich [mailto:jbeul...@suse.com]
> Sent: 20 March 2018 16:37
> To: Paul Durrant
> Cc: Andrew Cooper ; xen-
> de...@lists.xenproject.org
> Subject: Re: [PATCH v2 2/4] x86/hvm: take a reference on ioreq
>>> On 16.03.18 at 17:58, wrote:
> @@ -305,6 +305,7 @@ static int hvm_ioreq_server_add_vcpu(struct
> hvm_ioreq_server *s,
> bool is_default, struct vcpu *v)
> {
> struct hvm_ioreq_vcpu *sv;
> +domid_t domid;
> int rc;
When an ioreq server is created the code currently stores the id
of the emulating domain, but does not take a reference on that domain.
This patch modifies the code to hold a reference for the lifetime of the
ioreq server.
Signed-off-by: Paul Durrant
---
Cc: Jan Beulich