All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Glauber Costa <glommer@redhat.com>
Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH 5/9] Don't call apic functions directly from kvm code
Date: Thu, 03 Dec 2009 14:12:05 +0200	[thread overview]
Message-ID: <4B17AB15.5050701@redhat.com> (raw)
In-Reply-To: <1259761575-3953-6-git-send-email-glommer@redhat.com>

On 12/02/2009 03:46 PM, Glauber Costa wrote:
> It is actually not necessary to call a tpr function to save and load cr8,
> as cr8 is part of the processor state, and thus, it is much easier
> to just add it to CPUState.
>
> As for apic base, wrap kvm usages, so we can call either the qemu device,
> or the in kernel version.
>    

> @@ -789,8 +802,8 @@ int kvm_arch_post_run(CPUState *env, struct kvm_run *run)
>       else
>           env->eflags&= ~IF_MASK;
>
> -    cpu_set_apic_tpr(env, run->cr8);
> -    cpu_set_apic_base(env, run->apic_base);
> +    env->cr8 = run->cr8;
> +    kvm_set_apic_base(env, run->apic_base);
>
>    

This will break irqchip-in-qemu, since the APIC tpr will be disconnected 
from the guest's cr8.

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

  parent reply	other threads:[~2009-12-03 12:12 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-02 13:46 [Qemu-devel] [PATCH 0/9] in-kernel irqchip, new spin Glauber Costa
2009-12-02 13:46 ` [Qemu-devel] [PATCH 1/9] introduce VMSTATE_U64 Glauber Costa
2009-12-02 13:46   ` [Qemu-devel] [PATCH 2/9] Provide ioapic-kvm Glauber Costa
2009-12-02 13:46     ` [Qemu-devel] [PATCH 3/9] provide apic_set_irq_delivered Glauber Costa
2009-12-02 13:46       ` [Qemu-devel] [PATCH 4/9] provide i8259-kvm Glauber Costa
2009-12-02 13:46         ` [Qemu-devel] [PATCH 5/9] Don't call apic functions directly from kvm code Glauber Costa
2009-12-02 13:46           ` [Qemu-devel] [PATCH 6/9] export kvm_put_mp_state Glauber Costa
2009-12-02 13:46             ` [Qemu-devel] [PATCH 7/9] provide apic-kvm Glauber Costa
2009-12-02 13:46               ` [Qemu-devel] [PATCH 8/9] Initialize in-kernel irqchip Glauber Costa
2009-12-02 13:46                 ` [Qemu-devel] [PATCH 9/9] Do GSI routing Glauber Costa
2009-12-03 12:12           ` Avi Kivity [this message]
2009-12-03 10:27 ` [Qemu-devel] Re: [PATCH 0/9] in-kernel irqchip, new spin Michael S. Tsirkin
2009-12-03 11:42   ` Glauber Costa
2009-12-03 11:57     ` Michael S. Tsirkin
2009-12-03 12:04       ` Glauber Costa
2009-12-03 12:39         ` Michael S. Tsirkin
2009-12-03 12:45           ` Avi Kivity
2009-12-03 12:57             ` Glauber Costa

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=4B17AB15.5050701@redhat.com \
    --to=avi@redhat.com \
    --cc=aliguori@us.ibm.com \
    --cc=glommer@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 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.