1. 08 7月, 2013 1 次提交
    • D
      pci: Abolish pci_find_root_bus() · 1ef7a2a2
      David Gibson 提交于
      pci_find_root_bus() takes a domain parameter.  Currently PCI root buses
      with domain other than 0 can't be created, so this is more or less a long
      winded way of retrieving the main PCI root bus.  Numbered domains don't
      actually properly cover the (non x86) possibilities for multiple PCI root
      buses, so this patch for now enforces the domain == 0 restriction in other
      places to replace pci_find_root_bus() with an explicit
      pci_find_primary_bus().
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      1ef7a2a2
  2. 04 7月, 2013 10 次提交
    • D
      pci: Move pci_read_devaddr to pci-hotplug-old.c · 6ac363b5
      David Gibson 提交于
      pci_read_devaddr() is only used by the legacy functions for the old PCI
      hotplug interface in pci-hotplug-old.c.  So we move the function there,
      and make it static.
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      6ac363b5
    • D
      pci: Cleanup configuration for pci-hotplug.c · 79ca616f
      David Gibson 提交于
      pci-hotplug.c and the CONFIG_PCI_HOTPLUG variable which controls its
      compilation are misnamed.  They're not about PCI hotplug in general, but
      rather about the pci_add/pci_del interface which are now deprecated in
      favour of the more general device_add/device_del interface.  This patch
      therefore renames them to pci-hotplug-old.c and CONFIG_PCI_HOTPLUG_OLD.
      
      CONFIG_PCI_HOTPLUG=y was listed twice in {i386,x86_64}-softmmu.make for no
      particular reason, so we clean that up too.  In addition it was included in
      ppc64-softmmu.mak for which the old hotplug interface was never used and is
      unsuitable, so we remove that too.
      
      Most of pci-hotplug.c was additionaly protected by #ifdef TARGET_I386.  The
      small piece which wasn't is only called from the pci_add and pci_del hooks
      in hmp-commands.hx, which themselves were protected by #ifdef TARGET_I386.
      This patch therefore also removes the #ifdef from pci-hotplug-old.c,
      and changes the ifdefs in hmp-commands.hx to use CONFIG_PCI_HOTPLUG_OLD.
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      79ca616f
    • M
      pvpanic: fix fwcfg for big endian hosts · fea7d596
      Michael S. Tsirkin 提交于
      Convert port number to little endian when
      exposing it in fw cfg.
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      fea7d596
    • M
      pvpanic: initialization cleanup · bc3e6a0d
      Michael S. Tsirkin 提交于
      Avoid use of static variables: PC systems
      initialize pvpanic device through pvpanic_init,
      so we can simply create the fw_cfg file at that point.
      This also makes it possible to skip device
      creation completely if fw_cfg is not there, e.g. for xen -
      so the ports it reserves are not discoverable by guests.
      
      Also, make pvpanic_init void since callers ignore return
      status anyway.
      
      Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
      Cc: Laszlo Ersek <lersek@redhat.com>
      Cc: Paul Durrant <Paul.Durrant@citrix.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      bc3e6a0d
    • M
      MAINTAINERS: s/Marcelo/Paolo/ · c6d559d9
      Michael S. Tsirkin 提交于
      Marcelo doesn't maintain kvm anymore,
      Paolo is taking over the job.
      Update MAINTAINERS to stop flooding Marcelo with mail.
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      c6d559d9
    • A
      e1000: cleanup process_tx_desc · a0ae17a6
      Andrew Jones 提交于
      Coverity complains about two overruns in process_tx_desc(). The
      complaints are false positives, but we might as well eliminate
      them. The problem is that "hdr" is defined as an unsigned int,
      but then used to offset an array of size 65536, and another of
      size 256 bytes. hdr will actually never be greater than 255
      though, as it's assigned only once and to the value of
      tp->hdr_len, which is an uint8_t. This patch simply gets rid of
      hdr, replacing it with tp->hdr_len, which makes it consistent
      with all other tp member use in the function.
      
      v2:
       - also cleanup coding style issues in the touched lines
      Signed-off-by: NAndrew Jones <drjones@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      a0ae17a6
    • M
      pc_piix: cleanup init compat handling · fcbe0a70
      Michael S. Tsirkin 提交于
      Make sure 1.4 calls 1.5, 1.3 calls 1.4 etc.
      This way it's enough to add enough new compat hook
      in a single place in piix.
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      fcbe0a70
    • M
      pc: pass PCI hole ranges to Guests · f8c457b8
      Michael S. Tsirkin 提交于
      Guest currently has to jump through lots of hoops to guess the PCI hole
      ranges.  It's fragile, and makes us change BIOS each time we add a new
      chipset.  Let's report the window in a ROM file, to make BIOS do exactly
      what QEMU intends.
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      f8c457b8
    • M
      pci: store PCI hole ranges in guestinfo structure · 3459a625
      Michael S. Tsirkin 提交于
      Will be used to pass hole ranges to guests.
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      3459a625
    • M
      range: add Range structure · 620ac82e
      Michael S. Tsirkin 提交于
      Sometimes we need to pass ranges around, add a
      handy structure for this purpose.
      
      Note: memory.c defines its own concept of AddrRange structure for
      working with 128 addresses.  It's necessary there for doing range math.
      This is not needed for most users: struct Range is
      much simpler, and is only used for passing the range around.
      
      Cc: Peter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      620ac82e
  3. 03 7月, 2013 6 次提交
  4. 01 7月, 2013 23 次提交