1. 26 10月, 2013 9 次提交
    • D
      target-ppc: Add helper for KVM_PPC_RTAS_DEFINE_TOKEN · feaa64c4
      David Gibson 提交于
      Recent PowerKVM allows the kernel to intercept some RTAS calls from the
      guest directly.  This is used to implement the more efficient in-kernel
      XICS for example.  qemu is still responsible for assigning the RTAS token
      numbers however, and needs to tell the kernel which RTAS function name is
      assigned to a given token value.  This patch adds a convenience wrapper for
      the KVM_PPC_RTAS_DEFINE_TOKEN ioctl() which is used for this purpose.
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NAlexey Kardashevskiy <aik@ozlabs.ru>
      Acked-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      feaa64c4
    • A
      spapr-rtas: fix h_rtas parameters reading · 4fe822e0
      Alexey Kardashevskiy 提交于
      On the real hardware, RTAS is called in real mode and therefore
      top 4 bits of the address passed in the call are ignored.
      So does the patch.
      
      This converts h_rtas() to use existing rtas_ld() handlers.
      
      This fixed rtas_ld()/rtas_st() to ignore top 4 bits.
      Signed-off-by: NAlexey Kardashevskiy <aik@ozlabs.ru>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      4fe822e0
    • A
      spapr: Add ibm, purr property on power7 and newer · dcb861cb
      Alexey Kardashevskiy 提交于
      PAPR+ says that no "ibm,purr" tells the guest that H_PURR is not
      supported. However some guests still try calling H_PURR on POWER7 unless
      the property is present and equal to 0. This adds the property for CPUs
      supporting the PURR special register.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NAlexey Kardashevskiy <aik@ozlabs.ru>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      dcb861cb
    • A
      spapr: increase temporary fdt buffer size · 3bf6eedd
      Alexey Kardashevskiy 提交于
      At the moment the size of the buffer is set to 64K which is
      enough for approximately 150 VCPUs which is not the limit.
      
      This increases the buffer up to 256K which allows having
      a tree for approximately 600 VCPUs which is way beyond the real
      number we need.
      
      As only the real size of the tree is copied to the guest, there
      will be no impact on existing configurations.
      Signed-off-by: NAlexey Kardashevskiy <aik@ozlabs.ru>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      3bf6eedd
    • A
      PPC: Fix L2CR write accesses · 9633fcc6
      Alexander Graf 提交于
      Commit 2345f1c0 was supposed to render L2CR writes into noops. Instead,
      it made them illegal instruction traps which apparently didn't confuse
      XNU, but can easily confuse other OSs.
      
      Fix it up by actually doing nothing when we write to L2CR.
      Reported-by: NJulio Guerra <guerr@julio.in>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      Tested-by: NJulio Guerra <guerr@julio.in>
      9633fcc6
    • T
      target-ppc: Little Endian Correction to Load/Store Vector Element · bbfb6f13
      Tom Musta 提交于
      The Load Vector Element (lve*x) and Store Vector Element (stve*x)
      instructions not only byte-swap in Little Endian mode, they also
      invert the element that is accessed. For example, the RTL for
      lvehx contains this:
      
           eb <-- EA[60:63]
           if Big-Endian byte ordering then
               VRT[8*eb:8*eb+15] <-- MEM(EA,2)
           else
               VRT[112-(8*eb):127-(8*eb)] <-- MEM(EA,2)
      
      This patch adds the element inversion, as described in the last line
      of the RTL.
      Signed-off-by: NTom Musta <tommusta@gmail.com>
      Reviewed-by: NAnton Blanchard <anton@samba.org>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      bbfb6f13
    • T
      ppc: Add CFAR, DAR and DSISR to the dictionary of printable registers · 04f1f784
      Tom Musta 提交于
      The CFAR, DAR and DSISR registers are currently missing from the
      dictionary of registers that may be printed in the QEMU console.
      These are interesting registers when debugging.  With this patch,
      the following commands work properly:
      
           (qemu) print $cfar
           (qemu) print $dar
           (qemu) print $dsisr
      Signed-off-by: NTom Musta <tommusta@gmail.com>
      Reviewed-by: NAnton Blanchard <anton@samba.org>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      04f1f784
    • B
      pseries: Fix loading of little endian kernels · 16457e7f
      Benjamin Herrenschmidt 提交于
      Try loading the kernel as little endian if it fails big endian.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Reviewed-by: NAnton Blanchard <anton@samba.org>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      16457e7f
    • A
      pseries: Update SLOF firmware image · 09b04845
      Alexey Kardashevskiy 提交于
      This has reworked USB OHCI and adds support of USB EHCI,
      VIRTIO-SCSI and various fixes (IBM VSCSI, VGA and more).
      
      The full list of fixes is:
      *  usb-ohci: Convert td-phys every time to td-virt
      *  usb-storage: Fix cbwflags field
      *  Add -fno-strict-aliasing in global CFLAGS
      *  usb: fix various issues found with js2x
      *  Move hex64-{decode,encode}-unit to node.fs
      *  usb: Use separate in-memory endian swap
      *  usb-ohci: collect TDs from done list
      *  js2x: more fixes
      *  js2x: Fix build of takeover image
      *  js2x: use new usb stack
      *  usb-ohci: Use proper memory barriers always
      *  usb: Fix a couple of warnings
      *  Fix $cat-instance-unit
      *  Cache phandle of /chosen
      *  Use root.fs on qemu as well
      *  usb-ehci: Add ehci handshake
      *  usb: add mb for write accessors
      *  usb-ohci: add missing memory barriers
      *  usb-ohci: suspend the controller in exit code path
      *  usb-ohci: Add a reset when closing the OHCI
      *  usb: Use proper accessors for MMIO and separate in-memory endian swap
      *  Use a global definition of sync() and mb()
      *  net-snk: Remove exception handling
      *  usb: unmap buffers
      *  slof: call quiesce on closing of stdin
      *  usb-kbd: accept "s" to drop to OF prompt
      *  USB storage driver
      *  usb-ohci: add Bulk transfer support
      *  usb-ehci: Add bulk support
      *  usb-core: add usb bulk support
      *  USB generic hub device driver
      *  usb-ehci: setup new device
      *  usb-ehci: Check ehci ports
      *  usb-ehci: initialize controller
      *  USB keyboard driver
      *  usb-core: setup new device
      *  usb-core: create dev pool allocation
      *  usb-ohci: implement ohci send control
      *  usb-core: usb send control
      *  usb-core: implement usb_{get,put}_pipe routines
      *  usb-ohci: allocate pipe pool
      *  usb-ohci: reset, init and check-ports
      *  Add standard header stdbool.h
      *  usb-slof: forth support routines for C
      *  usb-ehci: Add USB EHCI skeleton
      *  usb-core: Add register accessor functions
      *  Use __builtin_bswap routines for endianness swapping
      *  usb-core: hcd registration and query routines
      *  usb-core: adding generic dev-hci.fs
      *  usb-core: registration and makefiles
      *  Add new USB code
      *  Remove old usb code
      *  vga: fix hcall-invert-screen and hcall-blink-screen
      *  Enumerate disk/cdrom aliases for multiple disks or cdroms
      *  scsi: unify scsi probing code
      *  vscsi: generalizing probe code
      *  virtio-scsi: iterate through targets
      *  scsi: unify and use make-disk-alias
      *  nvram: remove unnecessary prints
      *  Add hack to client interface finddevice of "/memory"
      *  scsi: Fix cdrom boot crash when no medium present
      *  Look for /memory@0, not just /memory
      *  Fix instance>qname crashing when displaying instance arguments
      *  Fix js2x build
      *  scsi-disk: Bound check read-blocks
      *  Fix off by one error in scsi-disk get-capacity
      *  scsi: fix report-luns handling
      *  SLOF: virtio-scsi block driver code
      *  scsi: Move bits of vio-vscsi.fs to a common helpers file
      *  scsi: Move scsi-disk.fs to a generic place
      *  SLOF: virtio-scsi helper routines
      *  SLOF: virtio-scsi - add pci device file
      *  iso9660: Don't constantly reallocate the read buffer
      *  vscsi: Sanitize interface between scsi-disk.fs and vio-vscsi.fs
      *  vio-vscsi: Rework vio-vscsi support
      *  virtio: Add a virtio-set-qaddr helper
      *  disk-label: Allocate 4096 bytes for 4k block devices
      *  disk-label: Increase the max size of the PReP boot partition
      *  Make load-base a real environment variable
      *  vio-vscsi: Switch to using a wildcard "disk" node and make scsi-disk generic
      *  Fix disk-label package to use proper instance path
      *  Increase size of catpad
      *  Fix instance>path to contain unit address for wildcard nodes
      *  Fix handling of wildcard nodes in open-dev
      *  vio-vscsi: Get CRQ on open and release on close
      Signed-off-by: NAlexey Kardashevskiy <aik@ozlabs.ru>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      09b04845
  2. 19 10月, 2013 7 次提交
    • A
      Merge remote-tracking branch 'qemu-kvm/uq/master' into staging · fc8ead74
      Anthony Liguori 提交于
      # By Paolo Bonzini (2) and Jan Kiszka (1)
      # Via Gleb Natapov
      * qemu-kvm/uq/master:
        kvmvapic: Prevent reading beyond the end of guest RAM
        x86: cpuid: reconstruct leaf 0Dh data
        x86: fix migration from pre-version 12
      
      Message-id: 1382108641-4862-1-git-send-email-pbonzini@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@amazon.com>
      fc8ead74
    • A
      Merge remote-tracking branch 'stefanha/net' into staging · 3551643e
      Anthony Liguori 提交于
      # By Amos Kong
      # Via Stefan Hajnoczi
      * stefanha/net:
        net/rtl8139: update network information when macaddr is changed in guest
        net/e1000: update network information when macaddr is changed in guest
        net: update nic info during device reset
      
      Message-id: 1382103314-21608-1-git-send-email-stefanha@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@amazon.com>
      3551643e
    • A
      Merge remote-tracking branch 'stefanha/block' into staging · 1da9772d
      Anthony Liguori 提交于
      # By Fam Zheng (3) and others
      # Via Stefan Hajnoczi
      * stefanha/block:
        vmdk: fix VMFS extent parsing
        vmdk: Only read cid from image file when opening
        virtio: Remove unneeded memcpy
        block/raw-win32: Always use -errno in hdev_open
        blockdev: fix cdrom read_only flag
        sd: Avoid access to NULL BlockDriverState
        hmp: drop bogus "[not inserted]"
      
      Message-id: 1382105915-27735-1-git-send-email-stefanha@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@amazon.com>
      1da9772d
    • A
      Merge remote-tracking branch 'bonzini/iommu-for-anthony' into staging · 98964491
      Anthony Liguori 提交于
      # By Paolo Bonzini (10) and others
      # Via Paolo Bonzini
      * bonzini/iommu-for-anthony:
        exec: remove qemu_safe_ram_ptr
        icount: make it thread-safe
        icount: document (future) locking rules for icount
        icount: prepare the code for future races in calling qemu_clock_warp
        icount: reorganize icount_warp_rt
        icount: use cpu_get_icount() directly
        timer: add timer_mod_anticipate and timer_mod_anticipate_ns
        timer: extract timer_mod_ns_locked and timerlist_rearm
        timer: make qemu_clock_enable sync between disable and timer's cb
        qemu-thread: add QemuEvent
        timer: protect timers_state's clock with seqlock
        seqlock: introduce read-write seqlock
        vga: Mark relevant portio lists regions as coalesced MMIO flushing
        cirrus: Mark vga io region as coalesced MMIO flushing
        portio: Allow to mark portio lists as coalesced MMIO flushing
        compatfd: switch to QemuThread
        memory: fix 128 arithmetic in info mtree
      
      Message-id: 1382024935-28297-1-git-send-email-pbonzini@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@amazon.com>
      98964491
    • A
      Merge remote-tracking branch 'bonzini/configure' into staging · 1cb9b64d
      Anthony Liguori 提交于
      # By Peter Maydell (3) and Ákos Kovács (2)
      # Via Paolo Bonzini
      * bonzini/configure:
        ui/Makefile.objs: delete unnecessary cocoa.o dependency
        default-configs/: CONFIG_GDBSTUB_XML removed
        Makefile.target: CONFIG_NO_* variables removed
        rules.mak: New string testing functions
        rules.mak: New logical functions for handling y/n values
      1cb9b64d
    • A
      Merge remote-tracking branch 'spice/spice.v75' into staging · c21611ab
      Anthony Liguori 提交于
      # By Gerd Hoffmann (2) and others
      # Via Gerd Hoffmann
      * spice/spice.v75:
        spice: fix multihead support
        spice-display: add display channel id to the debug messages.
        Fix VNC SASL authentication when using a QXL device
        spice: replace use of deprecated API
      
      Message-id: 1382006760-19388-1-git-send-email-kraxel@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@amazon.com>
      c21611ab
    • A
      Merge remote-tracking branch 'filippov/tags/20131015-xtensa' into staging · cd22e320
      Anthony Liguori 提交于
      xtensa queue 2013-10-15
      
      # gpg: Signature made Tue 15 Oct 2013 06:27:41 AM PDT using RSA key ID F83FA044
      # gpg: Can't check signature: public key not found
      
      # By Max Filippov
      # Via Max Filippov
      * filippov/tags/20131015-xtensa:
        target-xtensa: add in_asm logging
      
      Message-id: 1381844297-1728-1-git-send-email-jcmvbkbc@gmail.com
      Signed-off-by: NAnthony Liguori <aliguori@amazon.com>
      cd22e320
  3. 18 10月, 2013 6 次提交
  4. 17 10月, 2013 18 次提交