qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gleb Natapov <gleb@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-devel@nongnu.org, agraf@suse.de
Subject: Re: [Qemu-devel] [PATCH uq/master v3 0/2] correctly reset the CPU on INIT interrupts
Date: Thu, 18 Apr 2013 10:54:46 +0300	[thread overview]
Message-ID: <20130418075446.GL8997@redhat.com> (raw)
In-Reply-To: <1366027532-1120-1-git-send-email-pbonzini@redhat.com>

On Mon, Apr 15, 2013 at 02:05:30PM +0200, Paolo Bonzini wrote:
> These patches finally implement INIT entirely in userspace.  The problem
> here was that the CPU was being reset after kvm_arch_reset_vcpu is called.
> This made it harder to hook into the reset process and put APs into
> KVM_MP_STATE_INIT_RECEIVED state (instead of KVM_MP_STATE_UNINITIALIZED
> which is the state after a system reset).
> 
> In this series, patch 1 removes the kvm_arch_reset_vcpu from the generic
> code, and moves it into each architecture's CPU reset callback (half of
> our supported architectures do not need the callback anyway).
> 
> With this in place, patch 2 can add a similar x86-specific callback that
> is used after an INIT reset.  Apart from this callback, the code for
> INITs is shared entirely between the userspace irqchip and in-kernel
> irqchip cases.
> 
Reviewed-by: Gleb Natapov <gleb@redhat.com>

> v2->v3: add stub kvm_arch_reset_vcpu for s390
> 
> Paolo Bonzini (2):
>   kvm: reset state from the CPU's reset method
>   kvm: forward INIT signals coming from the chipset
> 
>  include/sysemu/kvm.h   |  2 --
>  kvm-all.c              | 11 -----------
>  target-arm/kvm.c       |  4 ----
>  target-i386/cpu.c      |  5 +++++
>  target-i386/helper.c   |  4 ++++
>  target-i386/kvm.c      | 37 ++++++++++++++++++++++++++-----------
>  target-i386/kvm_i386.h |  2 ++
>  target-ppc/kvm.c       |  4 ----
>  target-s390x/cpu.c     |  4 ++++
>  target-s390x/cpu.h     |  5 +++++
>  10 files changed, 46 insertions(+), 32 deletions(-)
> 
> -- 
> 1.8.1.4

--
			Gleb.

      parent reply	other threads:[~2013-04-18  7:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-15 12:05 [Qemu-devel] [PATCH uq/master v3 0/2] correctly reset the CPU on INIT interrupts Paolo Bonzini
2013-04-15 12:05 ` [Qemu-devel] [PATCH uq/master v3 1/2] kvm: reset state from the CPU's reset method Paolo Bonzini
2013-04-15 12:20   ` Andreas Färber
2013-04-15 12:55     ` Paolo Bonzini
2013-04-18  5:37   ` Gleb Natapov
2013-04-18  7:37     ` Paolo Bonzini
2013-04-15 12:05 ` [Qemu-devel] [PATCH uq/master v3 2/2] kvm: forward INIT signals coming from the chipset Paolo Bonzini
2013-04-18  7:54 ` Gleb Natapov [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=20130418075446.GL8997@redhat.com \
    --to=gleb@redhat.com \
    --cc=agraf@suse.de \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.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;
as well as URLs for NNTP newsgroup(s).