From: Marcelo Tosatti <mtosatti@redhat.com>
To: Gleb Natapov <gleb@redhat.com>
Cc: kvm-devel <kvm@vger.kernel.org>
Subject: Re: KVM: x86: stop IO emulation cycle if instruction pointer is modified
Date: Mon, 8 Jul 2013 18:16:35 -0300 [thread overview]
Message-ID: <20130708211635.GA11148@amt.cnet> (raw)
In-Reply-To: <20130706074112.GA26728@redhat.com>
On Sat, Jul 06, 2013 at 10:41:12AM +0300, Gleb Natapov wrote:
> On Fri, Jul 05, 2013 at 04:16:55PM -0300, Marcelo Tosatti wrote:
> >
> > MMIO/PIO emulation should be interrupted if the system is restarted.
> > Otherwise in progress IO emulation continues at the instruction pointer,
> > even after vcpus' IP has been modified by KVM_SET_REGS.
> >
> > Use IP change as an indicator to reset MMIO/PIO emulation state.
> >
> Userspace has to return to the kernel to complete pending IO operation.
> This is documented in Documentation/virtual/kvm/api.txt. If this is not
> what program does it is a bug. What userspace you see the problem with?
You're right, this patch should not be necessary.
prev parent reply other threads:[~2013-07-08 21:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-05 19:16 KVM: x86: stop IO emulation cycle if instruction pointer is modified Marcelo Tosatti
2013-07-06 7:41 ` Gleb Natapov
2013-07-08 21:16 ` Marcelo Tosatti [this message]
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=20130708211635.GA11148@amt.cnet \
--to=mtosatti@redhat.com \
--cc=gleb@redhat.com \
--cc=kvm@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox