All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] decouple vcpu index from apic id
@ 2009-06-08  9:32 Gleb Natapov
  2009-06-08  9:32 ` [PATCH 1/4] Introduce kvm_vcpu_is_bsp() function Gleb Natapov
                   ` (4 more replies)
  0 siblings, 5 replies; 16+ messages in thread
From: Gleb Natapov @ 2009-06-08  9:32 UTC (permalink / raw)
  To: avi; +Cc: kvm

Currently vcpu_id is used as an index into vcpus array and as apic id
on x86.  This is incorrect since apic ids not have to be continuous
(they can also encode cpu hierarchy information) and may have values
bigger then vcpu array in case of x2apic. This series removes use of
vcpu_id as vcpus array index. Each architecture may use it how it sees
fit. x86 uses it as apic id.

Gleb Natapov (4):
  Introduce kvm_vcpu_is_bsp() function.
  Use pointer to vcpu instead of vcpu_id in timer code.
  Break dependency between vcpu index in vcpus array and vcpu_id.
  Use macro to iterate over vcpus.

 arch/ia64/kvm/kvm-ia64.c   |   35 +++++++++------------
 arch/ia64/kvm/vcpu.c       |    2 +-
 arch/powerpc/kvm/powerpc.c |   16 ++++++----
 arch/s390/kvm/kvm-s390.c   |   33 ++++++++++----------
 arch/x86/kvm/i8254.c       |   13 +++-----
 arch/x86/kvm/i8259.c       |    6 ++--
 arch/x86/kvm/kvm_timer.h   |    2 +-
 arch/x86/kvm/lapic.c       |    9 +++--
 arch/x86/kvm/mmu.c         |    6 ++--
 arch/x86/kvm/svm.c         |    4 +-
 arch/x86/kvm/timer.c       |    2 +-
 arch/x86/kvm/vmx.c         |    6 ++--
 arch/x86/kvm/x86.c         |   29 ++++++++---------
 include/linux/kvm.h        |    2 +
 include/linux/kvm_host.h   |   18 +++++++++++
 virt/kvm/ioapic.c          |    4 ++-
 virt/kvm/irq_comm.c        |    6 +--
 virt/kvm/kvm_main.c        |   71 +++++++++++++++++++++++--------------------
 18 files changed, 142 insertions(+), 122 deletions(-)


^ permalink raw reply	[flat|nested] 16+ messages in thread
* RE: [PATCH 0/4] decouple vcpu index from apic id
  2009-06-08 11:25 ` [PATCH 0/4] decouple vcpu index from apic id Avi Kivity
@ 2009-06-09  2:30 ` Zhang, Xiantao
  -1 siblings, 0 replies; 16+ messages in thread
From: Zhang, Xiantao @ 2009-06-09  2:30 UTC (permalink / raw)
  To: kvm-ia64

Avi Kivity wrote:
> Gleb Natapov wrote:
>> Currently vcpu_id is used as an index into vcpus array and as apic id
>> on x86.  This is incorrect since apic ids not have to be continuous
>> (they can also encode cpu hierarchy information) and may have values
>> bigger then vcpu array in case of x2apic. This series removes use of
>> vcpu_id as vcpus array index. Each architecture may use it how it
>> sees fit. x86 uses it as apic id. 
>> 
>> 
> 
> Apart from my minor comments, this looks good, but I'd like to get
> acks from arch maintainers to avoid surprises.
> 
> Xiantao, does setting the bsp id make sense for ia64?

Make sense for ia64, if bsp id is set to 0.
But still have one comment about the patchset, in Patch[3/4], online_vcpus in kvm structure is introduced, but it should have the conflicts with arch.online_vcpus for ia64. So I think it should be fixed before check-in. 
Xiantao

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2009-06-09  5:27 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-08  9:32 [PATCH 0/4] decouple vcpu index from apic id Gleb Natapov
2009-06-08  9:32 ` [PATCH 1/4] Introduce kvm_vcpu_is_bsp() function Gleb Natapov
2009-06-08 11:20   ` Avi Kivity
2009-06-08 16:53     ` Hollis Blanchard
2009-06-08 16:57       ` Avi Kivity
2009-06-09  1:00     ` Zhang, Xiantao
2009-06-09  3:35       ` Avi Kivity
2009-06-08  9:32 ` [PATCH 2/4] Use pointer to vcpu instead of vcpu_id in timer code Gleb Natapov
2009-06-08  9:32 ` [PATCH 3/4] Break dependency between vcpu index in vcpus array and vcpu_id Gleb Natapov
2009-06-08 11:23   ` Avi Kivity
2009-06-08  9:32 ` [PATCH 4/4] Use macro to iterate over vcpus Gleb Natapov
2009-06-08 11:25 ` [PATCH 0/4] decouple vcpu index from apic id Avi Kivity
  -- strict thread matches above, loose matches on Subject: below --
2009-06-09  2:30 Zhang, Xiantao
2009-06-09  2:30 ` Zhang, Xiantao
2009-06-09  5:26 ` Gleb Natapov
2009-06-09  5:26   ` Gleb Natapov

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.