1. 01 7月, 2013 3 次提交
    • A
      KVM: MSI: Swap payload to native endianness · d07cc1f1
      Alexander Graf 提交于
      The usual MSI injection mechanism writes msi.data into memory using an
      le32 wrapper. So on big endian guests, this swaps msg.data into the
      expected byte order.
      
      For irqfd however, we don't swap the payload right now, rendering
      in-kernel MPIC emulation broken on PowerPC.
      
      Swap msg.data to the correct endianness whenever we touch it.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      d07cc1f1
    • A
      KVM: Export kvm_init_irq_routing · 7b774593
      Alexander Graf 提交于
      On PPC, we can have different types of interrupt controllers, so we really
      only know that we are going to use one when we created it.
      
      Export kvm_init_irq_routing() to common code, so that we don't have to call
      kvm_irqchip_create().
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      7b774593
    • A
      KVM: Don't assume that mpstate exists with in-kernel PIC always · 215e79c0
      Alexander Graf 提交于
      On PPC, we don't support MP state. So far it's not necessary and I'm
      not convinced yet that we really need to support it ever.
      
      However, the current idle logic in QEMU assumes that an in-kernel PIC
      also means we support MP state. This assumption is not true anymore.
      
      Let's split up the two cases into two different variables. That way
      PPC can expose an in-kernel PIC, while not implementing MP state.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      CC: Jan Kiszka <jan.kiszka@siemens.com>
      215e79c0
  2. 29 6月, 2013 24 次提交
  3. 28 6月, 2013 13 次提交