1. 26 5月, 2011 1 次提交
  2. 23 5月, 2011 3 次提交
  3. 20 5月, 2011 3 次提交
  4. 19 5月, 2011 5 次提交
    • A
      ahci: Fix non-NCQ accesses for LBA > 16bits · 1fddfba1
      Alexander Graf 提交于
      AHCI provides two ways of reading/writing data:
      
       1) NCQ
       2) ATA commands with the LBA in the command FIS
      
      In the second code path, we didn't handle any LBAs that were bigger than
      16 bits, so whenever a guest that used high LBA numbers wanted to access
      data, the LBA got truncated down to 16 bits, giving the guest garbage.
      
      This patch adds support for LBAs higher than 16 bits. I've tested that it
      works just fine with SeaBIOS and Linux guests. This patch also unbreaks
      the often reported grub errors people have seen with AHCI.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      1fddfba1
    • G
      Ignore pci unplug requests for unpluggable devices (CVE-2011-1751) · 505597e4
      Gerd Hoffmann 提交于
      This patch makes qemu ignore unplug requests from the guest for pci
      devices which are tagged as non-hotpluggable.  Trouble spot is the
      piix4 chipset with the ISA bridge.  Requests to unplug that one will
      make it go away together with all ISA bus devices, which are not
      prepared to be unplugged and thus don't cleanup, leaving active
      qemu timers behind in free'ed memory.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      505597e4
    • M
      blockdev: Store -drive option media in DriveInfo · 95b5edcd
      Markus Armbruster 提交于
      DriveInfo is closely tied to -drive, and like -drive, it mixes
      information about host and guest part of the block device.  Unlike
      DriveInfo, BlockDriverState should be about the host part only.
      
      One of the remaining guest bits there is the "type hint".  -drive
      option media sets it, and qdevs "ide-drive", "scsi-disk" and non-qdev
      IF_XEN devices check it to pick HD vs. CD.
      
      Communicate -drive option media via new DriveInfo member media_cd
      instead.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      95b5edcd
    • M
      scsi: Split qdev "scsi-disk" into "scsi-hd" and "scsi-cd" · b443ae67
      Markus Armbruster 提交于
      A "scsi-disk" is either a hard disk or a CD-ROM, depending on the
      associated BlockDriverState's type hint.  Unclean; disk vs. CD belongs
      to the guest part, not the host part.
      
      Have separate qdevs "scsi-hd" and "scsi-cd" to model disk vs. CD in
      the guest part.
      
      Keep scsi-disk for backward compatibility.
      
      Don't copy scsi-disk property removable to scsi-cd.  It's not used and
      always zero(!) there.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      b443ae67
    • M
      ide: Split qdev "ide-drive" into "ide-hd" and "ide-cd" · 1f56e32a
      Markus Armbruster 提交于
      An "ide-drive" is either a hard disk or a CD-ROM, depending on the
      associated BlockDriverState's type hint.  Unclean; disk vs. CD belongs
      to the guest part, not the host part.
      
      Have separate qdevs "ide-hd" and "ide-cd" to model disk vs. CD in
      the guest part.
      
      Keep ide-drive for backward compatibility.
      
      "ide-disk" would perhaps be a nicer name than "ide-hd", but there's
      already "scsi-disk", which is like "ide-drive", and will be likewise
      split in the next commit.  {ide,scsi}-{hd,cd} is the best consistent
      set of names I could find within the backward compatibility
      straightjacket.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      1f56e32a
  5. 18 5月, 2011 4 次提交
  6. 16 5月, 2011 1 次提交
  7. 12 5月, 2011 4 次提交
  8. 10 5月, 2011 5 次提交
  9. 09 5月, 2011 1 次提交
    • G
      usb-musb: uninline functions · b3e5759e
      Gerd Hoffmann 提交于
      Prototype without "inline" keyword breaks the build with some gcc
      versions.  Noticed by Alexander Graf.
      
      Fix this by removing the inline keywork everywhere.  Some functions
      can't be inlined anyway as the are referenced using function pointers.
      Beside that gcc does a pretty good job on auto-inlining these days.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      b3e5759e
  10. 08 5月, 2011 13 次提交