public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: "Dong, Eddie" <eddie.dong-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: kvm-devel <kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: Re: k->u migration bug fix
Date: Mon, 06 Aug 2007 16:25:42 +0300	[thread overview]
Message-ID: <46B72156.8010209@qumranet.com> (raw)
In-Reply-To: <10EA09EFD8728347A513008B6B0DA77A01E00BA4-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>

Dong, Eddie wrote:
> Fix bug for wrong vcpu->apic due to irq_summary set in user irqchip
> which makes union member vcpu->apic non NULL.
>
> Signed-off-by: Yaozu (Eddie) Dong <eddie.dong-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
>
> diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c
> index 470b7a1..03c1433 100644
> --- a/drivers/kvm/kvm_main.c
> +++ b/drivers/kvm/kvm_main.c
> @@ -1068,7 +1068,7 @@ static struct kvm_io_device
> *vcpu_find_pervcpu_dev(struct
>  {
>         struct kvm_io_device *dev;
>
> -       if (vcpu->apic) {
> +       if (irqchip_in_kernel(vcpu->kvm) && vcpu->apic) {
>                 dev = &vcpu->apic->dev;
>                 if (dev->in_range(dev, addr))
>                         return dev;
>   

Applied.  Please don't forget to send an attachment, I had to apply this 
by hand.

-- 
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

      parent reply	other threads:[~2007-08-06 13:25 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-03  6:18 [PATCH 0/6] in-kernel APIC save/restore and live migration He, Qing
     [not found] ` <37E52D09333DE2469A03574C88DBF40F048EE0-wq7ZOvIWXbM/UvCtAeCM4rfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-08-03 16:54   ` Avi Kivity
2007-08-05  7:59   ` Avi Kivity
     [not found]     ` <46B5837D.4040807-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-08-05  9:25       ` u <-> k cross migration and IDT_Vectoring save/restore Dong, Eddie
     [not found]         ` <10EA09EFD8728347A513008B6B0DA77A01E00941-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-08-05  9:34           ` Avi Kivity
     [not found]             ` <46B5999F.10008-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-08-05 10:45               ` Dong, Eddie
     [not found]                 ` <10EA09EFD8728347A513008B6B0DA77A01E0094F-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-08-05 10:54                   ` Avi Kivity
     [not found]                     ` <46B5AC69.4020908-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-08-05 10:56                       ` Dong, Eddie
2007-08-05 13:55                       ` Dong, Eddie
     [not found]                         ` <10EA09EFD8728347A513008B6B0DA77A01E0097A-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-08-05 13:58                           ` Avi Kivity
     [not found]                             ` <46B5D798.7020509-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-08-05 14:03                               ` Dong, Eddie
     [not found]                                 ` <10EA09EFD8728347A513008B6B0DA77A01E00980-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-08-05 15:00                                   ` Avi Kivity
2007-08-06  3:04                               ` k->u migration bug fix Dong, Eddie
     [not found]                                 ` <10EA09EFD8728347A513008B6B0DA77A01E00BA4-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-08-06 13:25                                   ` Avi Kivity [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=46B72156.8010209@qumranet.com \
    --to=avi-atkuwr5tajbwk0htik3j/w@public.gmane.org \
    --cc=eddie.dong-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.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