qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: Gleb Natapov <gleb@redhat.com>
Cc: Anthony Liguori <aliguori@us.ibm.com>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>,
	Glauber Costa <glommer@redhat.com>,
	Marcelo Tosatti <mtosatti@redhat.com>,
	Alexander Graf <agraf@suse.de>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	Avi Kivity <avi@redhat.com>
Subject: [Qemu-devel] Re: [PATCH 20/21] qemu-kvm: Move kvm_set_boot_cpu_id
Date: Tue, 02 Feb 2010 15:33:37 +0100	[thread overview]
Message-ID: <4B6837C1.7000006@siemens.com> (raw)
In-Reply-To: <20100202142830.GH739@redhat.com>

Gleb Natapov wrote:
> On Tue, Feb 02, 2010 at 03:20:02PM +0100, Jan Kiszka wrote:
>> Gleb Natapov wrote:
>>> On Tue, Feb 02, 2010 at 09:19:06AM +0100, Jan Kiszka wrote:
>>>> Setting the boot CPU ID is arch-specific KVM stuff. So push it where it
>>>> belongs to.
>>>>
>>> pc_init1 is also arch-specific, no? TCG should also be able to
>>> have BSP apic_id != 0.
>> But not kvm-specific.
>>
>> I don't understand your second remark. Can you help me how TCG is
>> affected by kvm_set_boot_cpu_id?
>>
> It is not affected right now. It assumes that apic ID of BSP cpu is 0,
> but this limitation does not exists on real HW. So when QEMU will be fixed
> and it will be possible to configure what CPU is BSP this will be the
> pace to do it.

That day pc_init1 (or whatever x86 part) will set the bsp number
somewhere in env or apicstate, and we will transfer that afterwards to kvm.

The point is that kvm_* belongs into kvm[-all].c as far as possible. And
in this case it is possible.

Jan

-- 
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux

  reply	other threads:[~2010-02-02 14:33 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-02  8:18 [Qemu-devel] [PATCH 00/21] qemu-kvm: Hook cleanups and extended use of upstream code Jan Kiszka
2010-02-02  8:18 ` [Qemu-devel] [PATCH 01/21] qemu-kvm: Drop vmport changes Jan Kiszka
2010-02-02  8:18 ` [Qemu-devel] [PATCH 02/21] KVM: Make vmport KVM-compatible Jan Kiszka
2010-02-02  8:18 ` [Qemu-devel] [PATCH 03/21] qemu-kvm: Clean up register access API Jan Kiszka
2010-02-02 11:06   ` [Qemu-devel] " Gleb Natapov
2010-02-02 11:18     ` Jan Kiszka
2010-02-02  8:18 ` [Qemu-devel] [PATCH 04/21] KVM: x86: Fix up misreported CPU features Jan Kiszka
2010-02-02  8:18 ` [Qemu-devel] [PATCH 05/21] qemu-kvm: Use upstream kvm_enabled and cpu_synchronize_state Jan Kiszka
2010-02-02  8:18 ` [Qemu-devel] [PATCH 06/21] qemu-kvm: Use upstream kvm_setup_guest_memory Jan Kiszka
2010-02-02  8:18 ` [Qemu-devel] [PATCH 07/21] qemu-kvm: Use some more upstream prototypes Jan Kiszka
2010-02-02  8:18 ` [Qemu-devel] [PATCH 08/21] qemu-kvm: Use upstream kvm_arch_get_supported_cpuid Jan Kiszka
2010-02-02  8:18 ` [Qemu-devel] [PATCH 09/21] qemu-kvm: Use upstream kvm_pit_in_kernel Jan Kiszka
2010-02-02  8:18 ` [Qemu-devel] [PATCH 10/21] KVM: Move and rename regs_modified Jan Kiszka
2010-02-02  8:18 ` [Qemu-devel] [PATCH 11/21] KVM: Rework of guest debug state writing Jan Kiszka
2010-02-02  8:18 ` [Qemu-devel] [PATCH 12/21] qemu-kvm: Use upstream kvm_vcpu_dirty Jan Kiszka
2010-02-02  8:18 ` [Qemu-devel] [PATCH 13/21] qemu-kvm: Use upstream guest debug code Jan Kiszka
2010-02-02  8:19 ` [Qemu-devel] [PATCH 14/21] qemu-kvm: Rework VCPU state writeback API Jan Kiszka
2010-02-02  8:19 ` [Qemu-devel] [PATCH 15/21] qemu-kvm: Clean up mpstate synchronization Jan Kiszka
2010-02-02 12:23   ` [Qemu-devel] " Gleb Natapov
2010-02-02 12:31     ` Jan Kiszka
2010-02-02 12:37       ` Gleb Natapov
2010-02-02 12:40         ` Jan Kiszka
2010-02-02  8:19 ` [Qemu-devel] [PATCH 16/21] KVM: x86: Restrict writeback of VCPU state Jan Kiszka
2010-02-02  8:19 ` [Qemu-devel] [PATCH 17/21] qemu-kvm: Use VCPU event state for reset and vmsave/load Jan Kiszka
2010-02-02  8:19 ` [Qemu-devel] [PATCH 18/21] qemu-kvm: Cleanup/fix TSC and PV clock writeback Jan Kiszka
2010-02-02  8:19 ` [Qemu-devel] [PATCH 19/21] qemu-kvm: Clean up KVM's APIC hooks Jan Kiszka
2010-02-02  8:19 ` [Qemu-devel] [PATCH 20/21] qemu-kvm: Move kvm_set_boot_cpu_id Jan Kiszka
2010-02-02 14:11   ` [Qemu-devel] " Gleb Natapov
2010-02-02 14:20     ` Jan Kiszka
2010-02-02 14:28       ` Gleb Natapov
2010-02-02 14:33         ` Jan Kiszka [this message]
2010-02-02  8:19 ` [Qemu-devel] [PATCH 21/21] qemu-kvm: Bring qemu_init_vcpu back home Jan Kiszka
2010-02-02 10:52 ` [Qemu-devel] Re: [PATCH 00/21] qemu-kvm: Hook cleanups and extended use of upstream code Alexander Graf
2010-02-02 11:19   ` Jan Kiszka

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=4B6837C1.7000006@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=agraf@suse.de \
    --cc=aliguori@us.ibm.com \
    --cc=avi@redhat.com \
    --cc=gleb@redhat.com \
    --cc=glommer@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=mtosatti@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).