xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: george.dunlap@eu.citrix.com,
	Konrad Rzeszutek Wilk <konrad@kernel.org>,
	jun.nakajima@Intel.com, yang.z.zhang@Intel.com,
	xen-devel@lists.xenproject.org
Subject: Re: [PATCH] pvh: Fix regression caused by assumption that HVM paths MUST use io-backend device.
Date: Tue, 4 Feb 2014 09:48:33 -0500	[thread overview]
Message-ID: <20140204144833.GE3853@phenom.dumpdata.com> (raw)
In-Reply-To: <52F0B8F30200007800118E81@nat28.tlf.novell.com>

On Tue, Feb 04, 2014 at 08:54:59AM +0000, Jan Beulich wrote:
> >>> On 03.02.14 at 18:03, Konrad Rzeszutek Wilk <konrad@kernel.org> wrote:
> > --- a/xen/arch/x86/hvm/vmx/vvmx.c
> > +++ b/xen/arch/x86/hvm/vmx/vvmx.c
> > @@ -1400,7 +1400,7 @@ void nvmx_switch_guest(void)
> >       * no virtual vmswith is allowed. Or else, the following IO
> >       * emulation will handled in a wrong VCPU context.
> >       */
> > -    if ( get_ioreq(v)->state != STATE_IOREQ_NONE )
> > +    if ( get_ioreq(v) && get_ioreq(v)->state != STATE_IOREQ_NONE )
> 
> As Mukesh pointed out, calling get_ioreq() twice is inefficient.
> 
> But to me it's not clear whether a PVH vCPU getting here is wrong
> in the first place, i.e. I would think the above condition should be
> || rather than && (after all, even if nested HVM one day became

I presume you mean like this:

	if ( !get_ioreq(v) || get_ioreq(v)->state != STATE_IOREQ_NONE )
		return;

If the Intel maintainers are OK with that I can do it that (and only
do one get_ioreq(v) call) and expand the comment.

Or just take the simple route and squash Mukesh's patch in mine and
revist this later - as I would prefer to make the minimal amount of
changes to any code in during rc3.


> supported for PVH, there not being an ioreq would still seem to be
> a clear indication of no further work to be done here).
> 
> Of course, if done that way, the corresponding comment would
> benefit from being extended accordingly.
> 
> Jan
> 
> 

  reply	other threads:[~2014-02-04 14:49 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-03 17:03 [PATCH] Xen 4.4-rc3 regression with PVH compared to Xen 4.4-rc2 Konrad Rzeszutek Wilk
2014-02-03 17:03 ` [PATCH] pvh: Fix regression caused by assumption that HVM paths MUST use io-backend device Konrad Rzeszutek Wilk
2014-02-04  8:54   ` Jan Beulich
2014-02-04 14:48     ` Konrad Rzeszutek Wilk [this message]
2014-02-04 15:02       ` Jan Beulich
2014-02-04 15:32         ` Konrad Rzeszutek Wilk
2014-02-04 15:46           ` Jan Beulich
2014-02-04 16:42             ` Konrad Rzeszutek Wilk
2014-02-05 14:35               ` George Dunlap
2014-02-05 15:00                 ` Jan Beulich
2014-02-05 15:26                 ` Konrad Rzeszutek Wilk
2014-02-07  2:28                   ` Zhang, Yang Z
2014-02-07 15:41                     ` Konrad Rzeszutek Wilk
2014-02-10 12:40                       ` George Dunlap
2014-02-11  0:17                       ` Zhang, Yang Z
2014-02-13 15:38                         ` George Dunlap
2014-02-13 16:03                           ` Jan Beulich
2014-02-13 16:08                             ` George Dunlap
2014-02-13 17:00                               ` Jan Beulich
2014-02-03 19:26 ` [PATCH] Xen 4.4-rc3 regression with PVH compared to Xen 4.4-rc2 Mukesh Rathor
2014-02-03 19:53   ` Konrad Rzeszutek Wilk
2014-02-03 20:01     ` Mukesh Rathor
2014-02-04  1:16   ` Mukesh Rathor

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=20140204144833.GE3853@phenom.dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=JBeulich@suse.com \
    --cc=george.dunlap@eu.citrix.com \
    --cc=jun.nakajima@Intel.com \
    --cc=konrad@kernel.org \
    --cc=xen-devel@lists.xenproject.org \
    --cc=yang.z.zhang@Intel.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).