1. 25 11月, 2013 1 次提交
  2. 20 9月, 2013 2 次提交
  3. 13 9月, 2013 1 次提交
  4. 03 9月, 2013 1 次提交
  5. 21 8月, 2013 2 次提交
  6. 10 8月, 2013 1 次提交
  7. 27 7月, 2013 1 次提交
  8. 23 7月, 2013 2 次提交
  9. 10 7月, 2013 4 次提交
    • A
      cpu: Make first_cpu and next_cpu CPUState · 182735ef
      Andreas Färber 提交于
      Move next_cpu from CPU_COMMON to CPUState.
      Move first_cpu variable to qom/cpu.h.
      
      gdbstub needs to use CPUState::env_ptr for now.
      cpu_copy() no longer needs to save and restore cpu_next.
      Acked-by: NPaolo Bonzini <pbonzini@redhat.com>
      [AF: Rebased, simplified cpu_copy()]
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      182735ef
    • A
    • A
      kvm: Free current_cpu identifier · 80b7cd73
      Andreas Färber 提交于
      Since CPU loops are done as last step in kvm_{insert,remove}_breakpoint()
      and kvm_remove_all_breakpoints(), we do not need to distinguish between
      invoking CPU and iterated CPUs and can thereby free the identifier for
      use as a global variable.
      Acked-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      80b7cd73
    • M
      Fix -machine options accel, kernel_irqchip, kvm_shadow_mem · 36ad0e94
      Markus Armbruster 提交于
      Multiple -machine options with the same ID are merged.  All but the
      one without an ID are to be silently ignored.
      
      In most places, we query these options with a null ID.  This is
      correct.
      
      In some places, we instead query whatever options come first in the
      list.  This is wrong.  When the -machine processed first happens to
      have an ID, options are taken from that ID, and the ones specified
      without ID are silently ignored.
      
      Example:
      
          $ upstream-qemu -nodefaults -S -display none -monitor stdio -machine id=foo -machine accel=kvm,usb=on
          $ upstream-qemu -nodefaults -S -display none -monitor stdio -machine id=foo,accel=kvm,usb=on -machine accel=xen
          $ upstream-qemu -nodefaults -S -display none -monitor stdio -machine accel=xen -machine id=foo,accel=kvm,usb=on
      
          $ qemu-system-x86_64 -nodefaults -S -display none -monitor stdio -machine accel=kvm,usb=on
          QEMU 1.5.50 monitor - type 'help' for more information
          (qemu) info kvm
          kvm support: enabled
          (qemu) info usb
          (qemu) q
          $ qemu-system-x86_64 -nodefaults -S -display none -monitor stdio -machine id=foo -machine accel=kvm,usb=on
          QEMU 1.5.50 monitor - type 'help' for more information
          (qemu) info kvm
          kvm support: disabled
          (qemu) info usb
          (qemu) q
          $ qemu-system-x86_64 -nodefaults -S -display none -monitor stdio -machine id=foo,accel=kvm,usb=on -machine accel=xen
          QEMU 1.5.50 monitor - type 'help' for more information
          (qemu) info kvm
          kvm support: enabled
          (qemu) info usb
          USB support not enabled
          (qemu) q
          $ qemu-system-x86_64 -nodefaults -S -display none -monitor stdio -machine accel=xen -machine id=foo,accel=kvm,usb=on
          xc: error: Could not obtain handle on privileged command interface (2 = No such file or directory): Internal error
          xen be core: can't open xen interface
          failed to initialize Xen: Operation not permitted
      
      Option usb is queried correctly, and the one without an ID wins,
      regardless of option order.
      
      Option accel is queried incorrectly, and which one wins depends on
      option order and ID.
      
      Affected options are accel (and its sugared forms -enable-kvm and
      -no-kvm), kernel_irqchip, kvm_shadow_mem.
      
      Additionally, option kernel_irqchip is normally on by default, except
      it's off when no -machine options are given.  Bug can't bite, because
      kernel_irqchip is used only when KVM is enabled, KVM is off by
      default, and enabling always creates -machine options.  Downstreams
      that enable KVM by default do get bitten, though.
      
      Use qemu_get_machine_opts() to fix these bugs.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Message-id: 1372943363-24081-5-git-send-email-armbru@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      36ad0e94
  10. 04 7月, 2013 1 次提交
    • P
      memory: add ref/unref calls · dfde4e6e
      Paolo Bonzini 提交于
      Add ref/unref calls at the following places:
      
      - places where memory regions are stashed by a listener and
        used outside the BQL (including in Xen or KVM).
      
      - memory_region_find callsites
      
      - creation of aliases and containers (only the aliased/contained
        region gets a reference to avoid loops)
      
      - around calls to del_subregion/add_subregion, where the region
        could disappear after the first call
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      dfde4e6e
  11. 03 7月, 2013 3 次提交
  12. 01 7月, 2013 4 次提交
    • A
      KVM: PIC: Only commit irq routing when necessary · cb925cf9
      Alexander Graf 提交于
      The current logic updates KVM's view of our interrupt map every time we
      change it. While this is nice and bullet proof, it slows things down
      badly for me. QEMU spends about 3 seconds on every start telling KVM what
      news it has on its routing maps.
      
      Instead, let's just synchronize the whole irq routing map as a whole when
      we're done constructing it. For things that change during runtime, we can
      still update the routing table on demand.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      cb925cf9
    • 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
  13. 28 6月, 2013 5 次提交
  14. 20 6月, 2013 1 次提交
    • P
      memory: make section size a 128-bit integer · 052e87b0
      Paolo Bonzini 提交于
      So far, the size of all regions passed to listeners could fit in 64 bits,
      because artificial regions (containers and aliases) are eliminated by
      the memory core, leaving only device regions which have reasonable sizes
      
      An IOMMU however cannot be eliminated by the memory core, and may have
      an artificial size, hence we may need 65 bits to represent its size.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      052e87b0
  15. 04 6月, 2013 1 次提交
  16. 29 5月, 2013 2 次提交
  17. 14 5月, 2013 1 次提交
  18. 03 5月, 2013 2 次提交
  19. 01 5月, 2013 1 次提交
  20. 16 4月, 2013 1 次提交
  21. 14 4月, 2013 3 次提交