From: Don Slutz <dslutz@verizon.com>
To: Paul Durrant <Paul.Durrant@citrix.com>,
Don Slutz <dslutz@verizon.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Cc: Wei Liu <wei.liu2@citrix.com>, "Keir (Xen.org)" <keir@xen.org>,
Ian Campbell <Ian.Campbell@citrix.com>,
Andrew Cooper <Andrew.Cooper3@citrix.com>,
George Dunlap <George.Dunlap@citrix.com>,
Stefano Stabellini <Stefano.Stabellini@citrix.com>,
Jan Beulich <jbeulich@suse.com>,
Ian Jackson <Ian.Jackson@citrix.com>
Subject: Re: [PATCH 3/5] hvmemul_do_io: If the send to the ioreq server failed do not retry.
Date: Fri, 30 Jan 2015 12:51:44 -0500 [thread overview]
Message-ID: <54CBC4B0.4010200@terremark.com> (raw)
In-Reply-To: <9AAE0902D5BC7E449B7C8E4E778ABCD0257DCF2B@AMSPEX01CL01.citrite.net>
On 01/30/15 05:37, Paul Durrant wrote:
>> -----Original Message-----
>> From: Don Slutz [mailto:dslutz@verizon.com]
>> Sent: 30 January 2015 00:52
>> To: xen-devel@lists.xen.org
>> Cc: Andrew Cooper; George Dunlap; Ian Campbell; Ian Jackson; Jan Beulich;
>> Keir (Xen.org); Stefano Stabellini; Wei Liu; Paul Durrant; Don Slutz
>> Subject: [PATCH 3/5] hvmemul_do_io: If the send to the ioreq server failed
>> do not retry.
>>
>> I.E. do just what no backing DM does.
>>
>> Signed-off-by: Don Slutz <dslutz@verizon.com>
>> ---
>> xen/arch/x86/hvm/emulate.c | 4 ++++
>> 1 file changed, 4 insertions(+)
>>
>> diff --git a/xen/arch/x86/hvm/emulate.c b/xen/arch/x86/hvm/emulate.c
>> index 2ed4344..e9fc070 100644
>> --- a/xen/arch/x86/hvm/emulate.c
>> +++ b/xen/arch/x86/hvm/emulate.c
>> @@ -228,7 +228,11 @@ static int hvmemul_do_io(
>> {
>> rc = X86EMUL_RETRY;
>> if ( !hvm_send_assist_req(&p) )
>> + {
>> + /* Since the send failed, do not retry */
>> + rc = X86EMUL_OKAY;
>
> I guess this is probably ok. It's a bit moot though as the only circumstance under which hvm_send_assist_req() will return 0 AFAICT, domain_crash() will have been called, or the vcpu is shutting down.
>
Turns out this is not ok. Jan pointed out that for guest suspend to
work correctly, you need to retry.
-Don Slutz
> Paul
>
>> vio->io_state = HVMIO_none;
>> + }
>> else if ( p_data == NULL )
>> rc = X86EMUL_OKAY;
>> }
>> --
>> 1.8.4
>
next prev parent reply other threads:[~2015-01-30 17:51 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-30 0:52 [PATCH 0/5] Skip unneeded VMENTRY & VMEXIT Don Slutz
2015-01-30 0:52 ` [PATCH 1/5] DEBUG: xentrace: Add debug of HANDLE_PIO Don Slutz
2015-01-30 0:52 ` [PATCH 2/5] xentrace: Adjust IOPORT & MMIO format Don Slutz
2015-01-30 0:52 ` [PATCH 3/5] hvmemul_do_io: If the send to the ioreq server failed do not retry Don Slutz
2015-01-30 10:23 ` Jan Beulich
2015-01-30 18:17 ` Don Slutz
2015-01-30 19:19 ` Don Slutz
2015-02-02 8:36 ` Jan Beulich
2015-02-02 13:53 ` Don Slutz
2015-02-02 9:51 ` Paul Durrant
2015-02-02 10:04 ` Jan Beulich
2015-02-02 10:06 ` Paul Durrant
2015-02-02 10:14 ` Jan Beulich
2015-02-02 13:54 ` Don Slutz
2015-01-30 10:37 ` Paul Durrant
2015-01-30 17:51 ` Don Slutz [this message]
2015-01-30 0:52 ` [PATCH 4/5] hvm_complete_assist_req: We should not be able to get here on IOREQ_TYPE_PCI_CONFIG Don Slutz
2015-01-30 10:24 ` Jan Beulich
2015-01-30 17:17 ` Don Slutz
2015-01-30 0:52 ` [PATCH 5/5] hvm_complete_assist_req: Tell caller we failed to send Don Slutz
2015-01-30 10:24 ` Jan Beulich
2015-01-30 17:47 ` Don Slutz
2015-01-30 10:40 ` Paul Durrant
2015-01-30 17:48 ` Don Slutz
2015-01-30 10:53 ` Paul Durrant
2015-01-30 17:49 ` Don Slutz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54CBC4B0.4010200@terremark.com \
--to=dslutz@verizon.com \
--cc=Andrew.Cooper3@citrix.com \
--cc=George.Dunlap@citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@citrix.com \
--cc=Paul.Durrant@citrix.com \
--cc=Stefano.Stabellini@citrix.com \
--cc=jbeulich@suse.com \
--cc=keir@xen.org \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.