All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Jan Kiszka <jan.kiszka@siemens.com>, Bandan Das <bsd@redhat.com>
Cc: kvm <kvm@vger.kernel.org>,
	Wanpeng Li <wanpeng.li@linux.intel.com>,
	Jailhouse <jailhouse-dev@googlegroups.com>
Subject: Re: [PATCH] KVM: nVMX: Disable preemption while reading from shadow VMCS
Date: Wed, 08 Oct 2014 22:21:00 +0200	[thread overview]
Message-ID: <54359CAC.6040602@redhat.com> (raw)
In-Reply-To: <54358E30.1070201@siemens.com>

Il 08/10/2014 21:19, Jan Kiszka ha scritto:
> > Ouch! I apologize if I missed this in the previous discussion but why do
> > we never get into this condition while running a Linux guest ?
> 
> Well, you need high load on the host, preemption at the "wrong" time,
> and some relevant difference between the still to-be-copied shadow vmcs
> fields between the proper vmcs and the real one that was used by KVM at
> that point. I don't think it is a Jailhouse-only issue, but other
> hypervisors may be less sensitive.

Indeed; in the particular case of the virtual interrupt pending bit it's
easy to see why it is not a problem for Linux guests:
handle_interrupt_window hardly does anything, you will just have a
useless KVM_REQ_EVENT request.

Running many different L2 guests (with an overcommitted host) should
expose it.  Note that the memory map and selectors are relatively
similar among similar guests, and the most scary fields (RIP and RSP),
are copied first when preemption is less likely.  It's possible that
moving them last would increase the chance of breakage.

Paolo

-- 
You received this message because you are subscribed to the Google Groups "Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jailhouse-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

  reply	other threads:[~2014-10-08 20:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-08 16:05 [PATCH] KVM: nVMX: Disable preemption while reading from shadow VMCS Jan Kiszka
2014-10-08 19:07 ` Bandan Das
2014-10-08 19:19   ` Jan Kiszka
2014-10-08 20:21     ` Paolo Bonzini [this message]
2014-10-08 20:03 ` Paolo Bonzini
2014-10-09  0:00 ` Wanpeng Li

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=54359CAC.6040602@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=bsd@redhat.com \
    --cc=jailhouse-dev@googlegroups.com \
    --cc=jan.kiszka@siemens.com \
    --cc=kvm@vger.kernel.org \
    --cc=wanpeng.li@linux.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 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.