1. 14 8月, 2014 2 次提交
  2. 08 8月, 2014 4 次提交
    • P
      Merge remote-tracking branch 'remotes/mdroth/qga-pull-2014-08-08' into staging · 2d591ce2
      Peter Maydell 提交于
      * remotes/mdroth/qga-pull-2014-08-08:
        qga: Disable unsupported commands by default
        qga: Add guest-get-fsinfo command
        qga: Add guest-fsfreeze-freeze-list command
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      2d591ce2
    • T
      qga: Disable unsupported commands by default · 1281c08a
      Tomoki Sekiyama 提交于
      Currently management softwares cannot know whether a qemu-ga command is
      supported or not on the running platform until they actually execute it.
      This patch disables unsupported commands at launch time of qemu-ga, so that
      management softwares can check whether they are supported from 'enabled'
      property of the result from 'guest-info' command.
      Signed-off-by: NTomoki Sekiyama <tomoki.sekiyama@hds.com>
      Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
      1281c08a
    • T
      qga: Add guest-get-fsinfo command · 46d4c572
      Tomoki Sekiyama 提交于
      Add command to get mounted filesystems information in the guest.
      The returned value contains a list of mountpoint paths and
      corresponding disks info such as disk bus type, drive address,
      and the disk controllers' PCI addresses, so that management layer
      such as libvirt can resolve the disk backends.
      
      For example, when `lsblk' result is:
      
          NAME           MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
          sdb              8:16   0    1G  0 disk
          `-sdb1           8:17   0 1024M  0 part
            `-vg0-lv0    253:1    0  1.4G  0 lvm  /mnt/test
          sdc              8:32   0    1G  0 disk
          `-sdc1           8:33   0  512M  0 part
            `-vg0-lv0    253:1    0  1.4G  0 lvm  /mnt/test
          vda            252:0    0   25G  0 disk
          `-vda1         252:1    0   25G  0 part /
      
      where sdb is a SCSI disk with PCI controller 0000:00:0a.0 and ID=1,
            sdc is an IDE disk with PCI controller 0000:00:01.1, and
            vda is a virtio-blk disk with PCI device 0000:00:06.0,
      
      guest-get-fsinfo command will return the following result:
      
          {"return":
           [{"name":"dm-1",
             "mountpoint":"/mnt/test",
             "disk":[
              {"bus-type":"scsi","bus":0,"unit":1,"target":0,
               "pci-controller":{"bus":0,"slot":10,"domain":0,"function":0}},
              {"bus-type":"ide","bus":0,"unit":0,"target":0,
               "pci-controller":{"bus":0,"slot":1,"domain":0,"function":1}}],
             "type":"xfs"},
            {"name":"vda1", "mountpoint":"/",
             "disk":[
              {"bus-type":"virtio","bus":0,"unit":0,"target":0,
               "pci-controller":{"bus":0,"slot":6,"domain":0,"function":0}}],
             "type":"ext4"}]}
      
      In Linux guest, the disk information is resolved from sysfs. So far,
      it only supports virtio-blk, virtio-scsi, IDE, SATA, SCSI disks on x86
      hosts, and "disk" parameter may be empty for unsupported disk types.
      Signed-off-by: NTomoki Sekiyama <tomoki.sekiyama@hds.com>
      
      *updated schema to report 2.2 as initial supported version
      Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
      46d4c572
    • T
      qga: Add guest-fsfreeze-freeze-list command · e99bce20
      Tomoki Sekiyama 提交于
      If an array of mount point paths is specified as 'mountpoints' argument
      of guest-fsfreeze-freeze-list, qemu-ga will only freeze the file systems
      mounted on specified paths in Linux guests. Otherwise, it works as the
      same way as guest-fsfreeze-freeze.
      This would be useful when the host wants to create partial disk snapshots.
      Signed-off-by: NTomoki Sekiyama <tomoki.sekiyama@hds.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      
      *updated schema to report 2.2 as initial supported version
      Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
      e99bce20
  3. 07 8月, 2014 4 次提交
    • P
      Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging · 2ee55b83
      Peter Maydell 提交于
      KVM changes include a MIPS patch and the testdev backend used by the
      ARM kvm-unit-tests.  icount include the first part of reverse execution
      and Sebastian Tanase's patches to slow down -icount execution to the
      desired speed of the target.
      
      v1->v2: fix dump_drift_info to print nothing outside icount mode,
              and to compile on 32-bit architectures
      
      # gpg: Signature made Thu 07 Aug 2014 14:09:58 BST using RSA key ID 9B4D86F2
      # gpg: Good signature from "Paolo Bonzini <pbonzini@redhat.com>"
      # gpg:                 aka "Paolo Bonzini <bonzini@gnu.org>"
      
      * remotes/bonzini/tags/for-upstream:
        target-mips: Ignore unassigned accesses with KVM
        monitor: Add drift info to 'info jit'
        cpu-exec: Print to console if the guest is late
        cpu-exec: Add sleeping algorithm
        icount: Add align option to icount
        icount: Add QemuOpts for icount
        icount: Fix virtual clock start value on ARM
        timer: add cpu_icount_to_ns function.
        migration: migrate icount fields.
        icount: put icount variables into TimerState.
        backends: Introduce chr-testdev
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      2ee55b83
    • J
      target-mips: Ignore unassigned accesses with KVM · eddedd54
      James Hogan 提交于
      MIPS registers an unassigned access handler which raises a guest bus
      error exception. However this causes QEMU to crash when KVM is enabled
      as it isn't called from the main execution loop so longjmp() gets called
      without a corresponding setjmp().
      
      Until the KVM API can be updated to trigger a guest exception in
      response to an MMIO exit, prevent the bus error exception being raised
      from mips_cpu_unassigned_access() if KVM is enabled.
      
      The check is at run time since the do_unassigned_access callback is
      initialised before it is known whether KVM will be enabled.
      
      The problem can be triggered with Malta emulation by making the guest
      write to the reset region at physical address 0x1bf00000, since it is
      marked read-only which is treated as unassigned for writes.
      Signed-off-by: NJames Hogan <james.hogan@imgtec.com>
      Reviewed-by: NAurelien Jarno <aurelien@aurel32.net>
      Cc: Peter Maydell <peter.maydell@linaro.org>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: Gleb Natapov <gleb@redhat.com>
      Cc: Christoffer Dall <christoffer.dall@linaro.org>
      Cc: Sanjay Lal <sanjayl@kymasys.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      eddedd54
    • S
      monitor: Add drift info to 'info jit' · 27498bef
      Sebastian Tanase 提交于
      Show in 'info jit' the current delay between the host clock
      and the guest clock. In addition, print the maximum advance
      and delay of the guest compared to the host.
      Signed-off-by: NSebastian Tanase <sebastian.tanase@openwide.fr>
      Tested-by: NCamille Bégué <camille.begue@openwide.fr>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      27498bef
    • P
      Merge remote-tracking branch 'remotes/awilliam/tags/vfio-pci-for-qemu-20140805.0' into staging · 9d8bb355
      Peter Maydell 提交于
      VFIO patches: Fix MSI-X vector expansion, remove MSI/X message caching
      
      # gpg: Signature made Tue 05 Aug 2014 20:25:57 BST using RSA key ID 3BB08B22
      # gpg: Can't check signature: public key not found
      
      * remotes/awilliam/tags/vfio-pci-for-qemu-20140805.0:
        vfio: Don't cache MSIMessage
        vfio: Fix MSI-X vector expansion
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      9d8bb355
  4. 06 8月, 2014 11 次提交
  5. 04 8月, 2014 19 次提交