qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 3ed444: kvm: Check if smp_cpus exceeds max cp


From: Anthony Liguori
Subject: [Qemu-commits] [qemu/qemu] 3ed444: kvm: Check if smp_cpus exceeds max cpus supported ...
Date: Mon, 13 Aug 2012 14:00:13 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 3ed444e949cd2f0938759836c0991dfabe86f485
      
https://github.com/qemu/qemu/commit/3ed444e949cd2f0938759836c0991dfabe86f485
  Author: Dunrong Huang <address@hidden>
  Date:   2012-08-09 (Thu, 09 Aug 2012)

  Changed paths:
    M kvm-all.c

  Log Message:
  -----------
  kvm: Check if smp_cpus exceeds max cpus supported by kvm

Add a helper function for fetching max cpus supported by kvm.

Make QEMU exit with an error message if smp_cpus exceeds limit
of VCPU count retrieved by invoking this helper function.

Signed-off-by: Dunrong Huang <address@hidden>
Signed-off-by: Marcelo Tosatti <address@hidden>
Signed-off-by: Avi Kivity <address@hidden>


  Commit: 08312a63b77df45ad056d2e8d9e2cbe8f683a23c
      
https://github.com/qemu/qemu/commit/08312a63b77df45ad056d2e8d9e2cbe8f683a23c
  Author: Peter Maydell <address@hidden>
  Date:   2012-08-09 (Thu, 09 Aug 2012)

  Changed paths:
    M configure

  Log Message:
  -----------
  configure: Don't implicitly hardcode list of KVM architectures

The code creating the symlink from linux-headers/asm to the
architecture specific linux-headers/asm-$arch directory was
implicitly hardcoding a list of KVM supporting architectures.
Add a default case for the common "Linux architecture name and
QEMU CPU name match" case, so future architectures will only
need to add code if they've managed to get mismatched names.

Signed-off-by: Peter Maydell <address@hidden>
Signed-off-by: Marcelo Tosatti <address@hidden>
Signed-off-by: Avi Kivity <address@hidden>


  Commit: 7ae26bd484a50810f8d29cb5399bc48108e50bec
      
https://github.com/qemu/qemu/commit/7ae26bd484a50810f8d29cb5399bc48108e50bec
  Author: Peter Maydell <address@hidden>
  Date:   2012-08-09 (Thu, 09 Aug 2012)

  Changed paths:
    M cpus.c
    M kvm-all.c
    M kvm-stub.c
    M kvm.h

  Log Message:
  -----------
  kvm: Decouple 'async interrupt delivery' from 'kernel irqchip'

On x86 userspace delivers interrupts to the kernel asynchronously
(and therefore VCPU idle management is done in the kernel) if and
only if there is an in-kernel irqchip. On other architectures this
isn't necessarily true (they may always send interrupts
asynchronously), so define a new kvm_async_interrupts_enabled()
function instead of misusing kvm_irqchip_in_kernel().

Signed-off-by: Peter Maydell <address@hidden>
Signed-off-by: Avi Kivity <address@hidden>


  Commit: 3889c3fab10b63e170ab5193d2ce6be99a704e93
      
https://github.com/qemu/qemu/commit/3889c3fab10b63e170ab5193d2ce6be99a704e93
  Author: Peter Maydell <address@hidden>
  Date:   2012-08-09 (Thu, 09 Aug 2012)

  Changed paths:
    M hw/kvm/i8259.c
    M hw/kvm/ioapic.c
    M kvm-all.c
    M kvm.h

  Log Message:
  -----------
  kvm: Rename kvm_irqchip_set_irq() to kvm_set_irq()

Rename the function kvm_irqchip_set_irq() to kvm_set_irq(),
since it can be used for sending (asynchronous) interrupts whether
there is a full irqchip model in the kernel or not. (We don't
include 'async' in the function name since asynchronous is the
normal case.)

Signed-off-by: Peter Maydell <address@hidden>
Signed-off-by: Avi Kivity <address@hidden>


  Commit: 1d31f66bbc886af56d2def349012a358dc3ada06
      
https://github.com/qemu/qemu/commit/1d31f66bbc886af56d2def349012a358dc3ada06
  Author: Peter Maydell <address@hidden>
  Date:   2012-08-09 (Thu, 09 Aug 2012)

  Changed paths:
    M hw/pc.c
    M kvm-all.c
    M kvm-stub.c
    M kvm.h
    M target-i386/Makefile.objs
    A target-i386/kvm-stub.c
    M target-i386/kvm.c
    A target-i386/kvm_i386.h

  Log Message:
  -----------
  kvm: Move kvm_allows_irq0_override() to target-i386, fix return type

kvm_allows_irq0_override() is a totally x86 specific concept:
move it to the target-specific source file where it belongs.
This means we need a new header file for the prototype:
kvm_i386.h, in line with the existing kvm_ppc.h.

While we are moving it, fix the return type to be 'bool' rather
than 'int'.

Signed-off-by: Peter Maydell <address@hidden>
Signed-off-by: Avi Kivity <address@hidden>


  Commit: cc7e0ddf5a2307015eacfac2ac6a6a765898fcc3
      
https://github.com/qemu/qemu/commit/cc7e0ddf5a2307015eacfac2ac6a6a765898fcc3
  Author: Peter Maydell <address@hidden>
  Date:   2012-08-09 (Thu, 09 Aug 2012)

  Changed paths:
    M kvm-all.c
    M kvm-stub.c
    M kvm.h
    M target-i386/kvm.c

  Log Message:
  -----------
  kvm: Decouple 'irqfds usable' from 'kernel irqchip'

Instead of assuming that we can use irqfds if and only if
kvm_irqchip_in_kernel(), add a bool to the KVMState which
indicates this, and is set only on x86 and only if the
irqchip is in the kernel.

The kernel documentation implies that the only thing
you need to use KVM_IRQFD is that KVM_CAP_IRQFD is
advertised, but this seems to be untrue. In particular
the kernel does not (alas) return a sensible error if you
try to set up an irqfd when you haven't created an irqchip.
If it did we could remove all this nonsense and let the
kernel return the error code.

Signed-off-by: Peter Maydell <address@hidden>
Acked-by: Jan Kiszka <address@hidden>
Signed-off-by: Avi Kivity <address@hidden>


  Commit: 614e41bc26dda751321da47acb1f9cb287b52085
      
https://github.com/qemu/qemu/commit/614e41bc26dda751321da47acb1f9cb287b52085
  Author: Peter Maydell <address@hidden>
  Date:   2012-08-09 (Thu, 09 Aug 2012)

  Changed paths:
    M hw/virtio-pci.c
    M kvm-all.c
    M kvm-stub.c
    M kvm.h
    M target-i386/kvm.c

  Log Message:
  -----------
  kvm: Decouple 'MSI routing via irqfds' from 'kernel irqchip'

Decouple another x86-specific assumption about what irqchips imply.

Signed-off-by: Peter Maydell <address@hidden>
Signed-off-by: Avi Kivity <address@hidden>


  Commit: f3e1bed8daa35726d2731dd2a010fb91a5bb3792
      
https://github.com/qemu/qemu/commit/f3e1bed8daa35726d2731dd2a010fb91a5bb3792
  Author: Peter Maydell <address@hidden>
  Date:   2012-08-09 (Thu, 09 Aug 2012)

  Changed paths:
    M kvm-all.c
    M kvm-stub.c
    M kvm.h
    M target-i386/kvm.c

  Log Message:
  -----------
  kvm: Decouple 'GSI routing' from 'kernel irqchip'

Don't assume having an in-kernel irqchip means that GSI
routing is enabled.

Signed-off-by: Peter Maydell <address@hidden>
Signed-off-by: Avi Kivity <address@hidden>


  Commit: 96fda35ac477e954eee989d6a3ae9e686cc361d6
      
https://github.com/qemu/qemu/commit/96fda35ac477e954eee989d6a3ae9e686cc361d6
  Author: Peter Maydell <address@hidden>
  Date:   2012-08-09 (Thu, 09 Aug 2012)

  Changed paths:
    M kvm.h

  Log Message:
  -----------
  kvm: Add documentation comment for kvm_irqchip_in_kernel()

Now we've cleared out the architecture-independent uses of
kvm_irqchip_in_kernel(), we can add a doc comment describing
what it means.

Signed-off-by: Peter Maydell <address@hidden>
Signed-off-by: Avi Kivity <address@hidden>


  Commit: d517872ec289f5bfa6bd9f385a90e09483e9949c
      
https://github.com/qemu/qemu/commit/d517872ec289f5bfa6bd9f385a90e09483e9949c
  Author: Anthony Liguori <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M configure
    M cpus.c
    M hw/kvm/i8259.c
    M hw/kvm/ioapic.c
    M hw/pc.c
    M hw/virtio-pci.c
    M kvm-all.c
    M kvm-stub.c
    M kvm.h
    M target-i386/Makefile.objs
    A target-i386/kvm-stub.c
    M target-i386/kvm.c
    A target-i386/kvm_i386.h

  Log Message:
  -----------
  Merge remote-tracking branch 'qemu-kvm/uq/master' into staging

* qemu-kvm/uq/master:
  kvm: Add documentation comment for kvm_irqchip_in_kernel()
  kvm: Decouple 'GSI routing' from 'kernel irqchip'
  kvm: Decouple 'MSI routing via irqfds' from 'kernel irqchip'
  kvm: Decouple 'irqfds usable' from 'kernel irqchip'
  kvm: Move kvm_allows_irq0_override() to target-i386, fix return type
  kvm: Rename kvm_irqchip_set_irq() to kvm_set_irq()
  kvm: Decouple 'async interrupt delivery' from 'kernel irqchip'
  configure: Don't implicitly hardcode list of KVM architectures
  kvm: Check if smp_cpus exceeds max cpus supported by kvm


Compare: https://github.com/qemu/qemu/compare/33e95c6328a3...d517872ec289

reply via email to

[Prev in Thread] Current Thread [Next in Thread]