1. 22 10月, 2014 1 次提交
  2. 20 10月, 2014 2 次提交
  3. 15 10月, 2014 3 次提交
  4. 03 10月, 2014 3 次提交
    • J
      q35/ahci: Pick up -cdrom and -hda options · d93162e1
      John Snow 提交于
      This patch implements the backend for the Q35 board
      for us to be able to pick up and use drives defined
      by the -cdrom, -hda, or -drive if=ide shorthand options.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Message-id: 1412187569-23452-7-git-send-email-jsnow@redhat.com
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      d93162e1
    • J
      ide: Update ide_drive_get to be HBA agnostic · d8f94e1b
      John Snow 提交于
      Instead of duplicating the logic for the if_ide
      (bus,unit) mappings, rely on the blockdev layer
      for managing those mappings for us, and use the
      drive_get_by_index call instead.
      
      This allows ide_drive_get to work for AHCI HBAs
      as well, and can be used in the Q35 initialization.
      
      Lastly, change the nature of the argument to
      ide_drive_get so that represents the number of
      total drives we can support, and not the total
      number of buses. This will prevent array overflows
      if the units-per-default-bus property ever needs
      to be adjusted for compatibility reasons.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Message-id: 1412187569-23452-5-git-send-email-jsnow@redhat.com
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      d8f94e1b
    • J
      pc/vl: Add units-per-default-bus property · 16026518
      John Snow 提交于
      This patch adds the 'units_per_default_bus' property which
      allows individual boards to declare their desired
      index => (bus,unit) mapping for their default HBA, so that
      boards such as Q35 can specify that its default if_ide HBA,
      AHCI, only accepts one unit per bus.
      
      This property only overrides the mapping for drives matching
      the block_default_type interface.
      
      This patch also adds this property to *all* past and present
      Q35 machine types. This retroactive addition is justified
      because the previous erroneous index=>(bus,unit) mappings
      caused by lack of such a property were not utilized due to
      lack of initialization code in the Q35 init routine.
      
      Further, semantically, the Q35 board type has always had the
      property that its default HBA, AHCI, only accepts one unit per
      bus. The new code added to add devices to drives relies upon
      the accuracy of this mapping. Thus, the property is applied
      retroactively to reduce complexity of allowing IDE HBAs with
      different units per bus.
      
      Examples:
      
      Prior to this patch, all IDE HBAs were assumed to use 2 units
      per bus (Master, Slave). When using Q35 and AHCI, however, we
      only allow one unit per bus.
      
      -hdb foo.qcow2 would become index=1, or bus=0,unit=1.
      -hdd foo.qcow2 would become index=3, or bus=1,unit=1.
      -drive file=foo.qcow2,index=5 becomes bus=2,unit=1.
      
      These are invalid for AHCI. They now become, under Q35 only:
      
      -hdb foo.qcow2 --> index=1, bus=1, unit=0.
      -hdd foo.qcow2 --> index=3, bus=3, unit=0.
      -drive file=foo.qcow2,index=5 --> bus=5,unit=0.
      
      The mapping is adjusted based on the fact that the default IF
      for the Q35 machine type is IF_IDE, and units-per-default-bus
      overrides the IDE mapping from its default of 2 units per bus
      to just 1 unit per bus.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Message-id: 1412187569-23452-4-git-send-email-jsnow@redhat.com
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      16026518
  5. 26 9月, 2014 1 次提交
  6. 22 9月, 2014 1 次提交
  7. 19 9月, 2014 1 次提交
    • M
      pc: leave more space for BIOS allocations · 438f92ee
      Michael S. Tsirkin 提交于
      Since QEMU 2.1, we are allocating more space for ACPI tables, so no
      space is left after initrd for the BIOS to allocate memory.
      
      Besides ACPI tables, there are a few other uses of high memory in
      SeaBIOS: SMBIOS tables and USB drivers use it in particular.  These uses
      allocate a very small amount of memory.  Malloc metadata also lives
      there.  So we need _some_ extra padding there to avoid initrd breakage,
      but not much.
      
      John Snow found a case where RHEL5 was broken by the recent change to
      ACPI_TABLE_SIZE; in his case 4KB of extra padding are fine, but just to
      be safe I am adding 32KB, which is roughly the same amount of padding
      that was left by QEMU 2.0 and earlier.
      
      Move initrd to leave some space for the BIOS.
      
      Cc: qemu-stable@nongnu.org
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Reported-by: NJohn Snow <jsnow@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      438f92ee
  8. 16 9月, 2014 3 次提交
  9. 11 9月, 2014 1 次提交
  10. 09 9月, 2014 1 次提交
  11. 03 9月, 2014 2 次提交
    • Z
      acpi-build: Set FORCE_APIC_CLUSTER_MODEL bit for FADT flags · 07b81ed9
      zhanghailiang 提交于
      If we start Windows 2008 R2 DataCenter with number of cpu less than 8,
      The system will use APIC Flat Logical destination mode as default configuration,
      Which has an upper limit of 8 CPUs.
      
      The fault is that VM can not show all processors within Task Manager if
      we hot-add cpus when the number of cpus in VM extends the limit of 8.
      
      If we use cluster destination model, the problem will be solved.
      
      Note:
      This flag was introduced later than ACPI v1.0 specification while QEMU
      generates v1.0 tables only, but...
      
      linux kernel ignores this flag, so patch has no influence on it.
      
      Tested with Win[XPsp3|Srv2003EE|Srv2008DC|Srv2008R2|Srv2012R2], there
      isn't BSODs and guests boot just fine. In cases guest doesn't support
      cpu-hotplug, cpu becomes visible after reboot and in case the guest
      supports cpu-hotplug, it works as expected with this patch.
      
      Cc: qemu-stable@nongnu.org
      Signed-off-by: Nhuangzhichao <huangzhichao@huawei.com>
      Signed-off-by: Nzhanghailiang <zhang.zhanghailiang@huawei.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Reviewed-By: NIgor Mammedov <imammedo@redhat.com>
      07b81ed9
    • G
      Fix debug print warning · c5539cb4
      Gonglei 提交于
      Steps:
      
      1.enable qemu debug print, using simply scprit as below:
       grep "//#define DEBUG" * -rl | xargs sed -i "s/\/\/#define DEBUG/#define DEBUG/g"
      2. make -j
      3. get some warning:
      hw/i2c/pm_smbus.c: In function 'smb_ioport_writeb':
      hw/i2c/pm_smbus.c:142: warning: format '%04x' expects type 'unsigned int', but argument 2 has type 'hwaddr'
      hw/i2c/pm_smbus.c:142: warning: format '%02x' expects type 'unsigned int', but argument 3 has type 'uint64_t'
      hw/i2c/pm_smbus.c: In function 'smb_ioport_readb':
      hw/i2c/pm_smbus.c:209: warning: format '%04x' expects type 'unsigned int', but argument 2 has type 'hwaddr'
      hw/intc/i8259.c: In function 'pic_ioport_read':
      hw/intc/i8259.c:373: warning: format '%02x' expects type 'unsigned int', but argument 2 has type 'hwaddr'
      hw/input/pckbd.c: In function 'kbd_write_command':
      hw/input/pckbd.c:232: warning: format '%02x' expects type 'unsigned int', but argument 2 has type 'uint64_t'
      hw/input/pckbd.c: In function 'kbd_write_data':
      hw/input/pckbd.c:333: warning: format '%02x' expects type 'unsigned int', but argument 2 has type 'uint64_t'
      hw/isa/apm.c: In function 'apm_ioport_writeb':
      hw/isa/apm.c:44: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'hwaddr'
      hw/isa/apm.c:44: warning: format '%02x' expects type 'unsigned int', but argument 3 has type 'uint64_t'
      hw/isa/apm.c: In function 'apm_ioport_readb':
      hw/isa/apm.c:67: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'hwaddr'
      hw/timer/mc146818rtc.c: In function 'cmos_ioport_write':
      hw/timer/mc146818rtc.c:394: warning: format '%02x' expects type 'unsigned int', but argument 3 has type 'uint64_t'
      hw/i386/pc.c: In function 'port92_write':
      hw/i386/pc.c:479: warning: format '%02x' expects type 'unsigned int', but argument 2 has type 'uint64_t'
      
      Fix them.
      
      Cc: qemu-trivial@nongnu.org
      Signed-off-by: NGonglei <arei.gonglei@huawei.com>
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      c5539cb4
  12. 29 8月, 2014 5 次提交
  13. 25 8月, 2014 3 次提交
  14. 18 8月, 2014 2 次提交
  15. 16 8月, 2014 1 次提交
  16. 14 8月, 2014 4 次提交
  17. 01 8月, 2014 1 次提交
  18. 29 7月, 2014 5 次提交