aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* linuxboot: fix gdt address calculationAvi Kivity2010-01-081-2/+3
| | | | | | | | | | | | | The gdt address calculation in linuxboot.bin is broken in two ways: first it loads %cs into %eax, but that instruction leaves the high bits of %eax undefined and we did not clear them. Secondly, we completely ignore the incorrect %eax, and use the undefined %ebx instead. With these issues fixed, linuxboot works again. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit d0652aa8ac8d82e077acf8e781557f4c4367dcf5)
* QMP: Drop wrong assert()Luiz Capitulino2010-01-081-1/+0
| | | | | | | | | | | | Some commands return a QList of QDicts, which is valid, but will trig the assert(). Just drop it. Reported-by: Nathan Baum <nathan@parenthephobia.org.uk> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 810f49b56a5d0cd6848856af51d3093ae9adc7b1)
* vnc: Fix artifacts in hextile decodingAnthony Liguori2010-01-071-0/+2
| | | | | | | | | | | | | 02c2b87 introduced a regression whereas the foreground color in a hextile update was not being properly invalidated leading to artifacts. It's still necessary to explicitly invalidate the foreground color with a SubrectColoured tile even though we no longer send a foreground color as part of the tile. Reported-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 18cb1d85578e03b16570d9380309cca673f9fff8)
* Merge remote branch 'mst/stable-0.12' into stable-0.12Anthony Liguori2010-01-060-0/+0
|\
| * e1000: fix init values for command registerMichael S. Tsirkin2009-12-151-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Command register for e1000 was initialized to values out of spec: all of bus master, io, memory and interrupt disable bits were set. This breaks the device now that we actually respect the interrupt disable bit, unless the guest happens to clear it. Fix, and make the device more spec compliant, by not touching the default. There are implications for migration from old qemu as well, will be addressed separately. Reported-by: Luiz Capitulino <lcapitulino@redhat.com> Tested-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
* | target-i386: Fix "call im" on x86_64 when executing 32-bit codeAurelien Jarno2010-01-031-0/+2
| | | | | | | | | | | | | | | | | | Similarly to what is done in 32938e127f50a40844a0fb9c5abb8691aeeccf7e for "jmp im", trunc the immediate to 32-bit when not running in 64-bit mode. Reported-by: Kevin O'Connor <kevin@koconnor.net> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* | Add missing newline at the end of options listMichael Tokarev2009-12-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In qemu-kvm this place looks even more "interesting": -runas user Change to user id user just before starting the VM. -readconfig <file> -writeconfig <file> read/write config file-no-kvm disable KVM hardware virtualization -no-kvm-irqchip disable KVM kernel mode PIC/IOAPIC/LAPIC -no-kvm-pit disable KVM kernel mode PIT Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> (cherry picked from commit 19e65b47f60c68d7e8c96aa0a36223c5a0d3422b)
* | Don't load options roms intended to be loaded by the bios in qemuAvi Kivity2009-12-241-1/+7
| | | | | | | | | | | | | | | | | | The first such option rom will load at address 0, which isn't very nice, and the second will report a conflict and abort, which is horrible. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> (cherry picked from commit e405a2ba91b68817cae2a428de55fe9616a4cf37)
* | USB: Improve usbdevice error messagesScott Tsai2009-12-231-3/+14
| | | | | | | | | | | | | | | | | | | | When an non-existent USB device is specified on the command line, print "qemu: could not add USB device 'X'". Likewise for the usb_{add,del} monitor commands. Signed-off-by: Scott Tsai <scottt.tw@gmail.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> (cherry picked from commit 59d1c1c2d774cccb0a88ff73501f97bea190c154)
* | cpu-all.h: fix cpu_get_real_ticks() #ifdefAurelien Jarno2009-12-201-1/+2
| | | | | | | | | | | | | | Reported-by: Hervé Poussineau <hpoussin@reactos.org> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> (cherry picked from commit 9706c06d9c93b6d94785b6b14565b61ddae95a04)
* | alpha: fix compileBlue Swirl2009-12-201-2/+2
| | | | | | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | user_only: compile everything with -fpieKirill A. Shutemov2009-12-202-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | We really need compile _all_ sources for user target with -fpie when use --enable-user-pie. It's regression introduced by commit add16157d72454. Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name> Cc: Blue Swirl <blauwirbel@gmail.com> Signed-off-by: Juan Quintela <quintela@redhat.com> [blauwirbel@gmail.com: combined 299060a0 and 58faa1a6 to avoid breakage] Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | fdc/sparc32: don't hang on detection under OBPArtyom Tarasenko2009-12-201-0/+6
| | | | | | | | | | | | | | | | | | | | | | Stepping through the SS-5's OBP initialization routines it looks like reading fdc main status register should clear the fd interrupt. The patch doesn't fix problems with fdc on sparc platform, it only fixes fdc detection. Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | scsi-disk: Inquiry with allocation length of CDB < 36 (v4)Artyom Tarasenko2009-12-201-6/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | According to the SCSI-2 specification, http://ldkelley.com/SCSI2/SCSI2/SCSI2/SCSI2-08.html#8.2.5 , "if the allocation length of the command descriptor block (CDB) is too small to transfer all of the parameters, the additional length shall not be adjusted to reflect the truncation." The 36 mandatory bytes of response are written to outbuf, and then only the length requested in CDB is transferred. Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | Update version and changelog for 0.12.1Anthony Liguori2009-12-192-1/+5
| | | | | | | | Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* | Multiboot support: Fix rom_copyKevin Wolf2009-12-191-2/+5
| | | | | | | | | | | | | | | | | | | | ROMs need to be loaded if they are anywhere in the requested area, not only at the very beginning. This fixes Multiboot with ELF kernels that have more than one program header. Signed-off-by: Kevin Wolf <mail@kevin-wolf.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> (cherry picked from commit 935effc2bbd2c441b755a8d280811a9763fdb98c)
* | roms: allow roms to be loaded at address 0Aurelien Jarno2009-12-191-8/+0
| | | | | | | | | | | | | | | | | | It was possible to load roms at address 0, but commit 632cf034b401cdd01dae253a8b577fe518e37654 started to forbid that, which broke at least ARM versatile. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> (cherry picked from commit f9e69bd9cfe2247b1fb5dc56d3a28baf36ce8384)
* | Update for 0.12.0 releaseAnthony Liguori2009-12-192-1/+35
| | | | | | | | Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* | Update to SeaBIOS 0.5.0Anthony Liguori2009-12-192-0/+0
| | | | | | | | | | | | | | | | The only change is updating the makefile but that way we're carrying an official release. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit eac1bb74be4d95616b8a6217e020b1b0d6918608)
* | Revert "monitor: Convert do_migrate_set_speed() to QObject"Anthony Liguori2009-12-193-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 3a4921047d514c336531c304bec362c4d138ebcc. From Luiz: do_migrate_set_speed() accepts a suffix for the 'value' argument and this is not good for QMP. We will have to add a new argument type to handle that and this will have to wait for 0.13. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 46ee2295678af629a2869e4e331e4e002bcc31fd)
* | e1000: Don't muck with PCI commmand registerAnthony Liguori2009-12-191-1/+0
| | | | | | | | | | | | | | | | | | | | Otherwise, the driver does not work in Linux after the INT_DISABLE changes in PCI. Michael Tsirkin had a patch to do this, I'm not sure what happened to it. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 17a7a5c59c4d72dd1d5666f348b010be6b10163c)
* | monitor: do_balloon(): Use 'M' argument typeLuiz Capitulino2009-12-192-3/+2
| | | | | | | | | | | | | | | | | | This makes do_balloon() accept megabyte values from the user Monitor while accepting byte values for QMP. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 056001ab30b1e596b992e70f9cb2adacef9c0ad0)
* | monitor: Introduce 'M' argument typeLuiz Capitulino2009-12-191-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | This is a target long value in megabytes which should be converted to bytes. It will be used by handlers which accept a megabyte value when in "user mode". Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 7cfe34fe4e3b518485c15aa9a78b4cf9cbd11a4d)
* | QMP: Update spec fileLuiz Capitulino2009-12-191-26/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | - Remove "draft" status - Change default success response to be json-object - Change error and event data member to be a json-object - Update examples - Add new section "Compatibility Considerations" - Other fixes and clarifications Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 58341bcd112cf11c6266cabe36921572fa4b019d)
* | QMP: Update README fileLuiz Capitulino2009-12-191-11/+23
| | | | | | | | | | | | | | | | | | | | - Fix output description - Fix command-line usage notes - Minor improvements Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit d683cfb1a94aa61ace4ce7ce824f1e087b37b851)
* | QMP: Assure that returned data is a QDictLuiz Capitulino2009-12-191-0/+1
| | | | | | | | | | | | | | | | This is for debug purposes only. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 19863875a2e18fc868a7b830f16fa76d32518bd1)
* | QMP: Return an empty dict by defaultLuiz Capitulino2009-12-191-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, when a regular command doesn't have any data to output, QMP will emit: { "return": "OK" } Returning an empty dict is better though, because dicts can support some protocol changes in a compatible way. So, with this commit we will return: { "return": {} } Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit e38fb11b5099db8de8d60d536d4a01610ee4c08b)
* | QMP: Only handle converted commandsLuiz Capitulino2009-12-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Looks like I dropped this check when addressing the 'query-' commands request. QMP should only handle converted commands, obviously. Reported-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 89f5461fc9a3c437e632f6895dc605e8f03b925e)
* | Update SeaBIOS to include PCI based option rom loadingAnthony Liguori2009-12-193-0/+0
| | | | | | | | | | | | | | Also remove pcbios from the tree. It will no longer work. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 2dc3f77c86b6c3782f057af1d935ccddc052bed5)
* | roms: remove option rom packing logicGerd Hoffmann2009-12-192-61/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | Now that we load the option roms via fw_cfg, we can stop copying them to the 0xc000 -> 0xe000. The patch does just that. Also the rom loader gets simplified as all remaining users of the rom loader load the bits at a fixed address so the packing and aligning logic can go away. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 632cf034b401cdd01dae253a8b577fe518e37654)
* | roms: use new fw_cfg file xfer support.Gerd Hoffmann2009-12-193-5/+27
| | | | | | | | | | | | | | | | | | roms: use fw_cfg for vgabios and option rom loading, additionally to deploying them the traditional way (copy to 0xc0000 -> 0xe0000 range). Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 379526a40e855b0da3c5718063a7d992aa5a79a1)
* | fw_cfg: add API for file transfer.Gerd Hoffmann2009-12-192-2/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds a file transfer interface to fw_cfg. Intended to be used for passing non-pci option roms and vgabios to seabios. Namespace is modeled after the existing cbfs filesystem support in seabios. Reading the new FW_CFG_FILE_DIR entry returns a file list. Fields there are in network byte order (aka bigendian). aliguori: fix fw_cfg.h for multiboot.bin, add proper fw_cfg.h declarations, quiet fprintf() in fw_cfg.c Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit abe147e0ce41c07e789f6627bcb01c905d1f9bbf)
* | fw_cfg: make calls typesafeGerd Hoffmann2009-12-192-21/+21
| | | | | | | | | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit c2b5bda43a1c87147fadc78d5590b1465b850816)
* | pci romfiles: add property, add default to PCIDeviceInfoGerd Hoffmann2009-12-196-32/+29
| | | | | | | | | | | | | | | | | | | | | | This patch adds a romfile property to the pci bus. It allows to specify a romfile to load into the rom bar of the pci device. The default value comes from a new field in PCIDeviceInfo. The property allows to change the file and also to disable the rom loading using an empty string. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 8c52c8f320b27684ec3b1a649925b75af376b1f7)
* | Support PCI based option rom loadingAnthony Liguori2009-12-196-4/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, we preload option roms into the option rom space in memory. This prevents DDIM from functioning correctly which severely limits the number of roms we can support. This patch introduces a pci_add_option_rom() which registers the PCI_ROM_ADDRESS bar which points to our option rom. It also converts over the cirrus vga adapter, the rtl8139, virtio, and the e1000 to use this new mechanism. The result is that PXE boot functions even with three unique types of cards. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit c2039bd0ffce8807e0eaac55254fde790825fa92)
* | Fix backcompat for hotplug of SCSI controllersDaniel P. Berrange2009-12-191-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SCSI controllers have no trouble existing without any attached disks. This could be achieved with the (legacy) monitor syntax pci_add pci_addr=auto storage if=scsi This is now denied with scsi requires a backing file/device. failed to add if=scsi There is no need for this denial and it breaks compatability with existing QEMU usage, so remove the check for presence of a drive. Signed-off-by: Daniel P. Berrange <berrange@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit ec7efac4a967c650ae1cd8cebe28e7c69cbe3864)
* | fdc: fix migration from 0.11Juan Quintela2009-12-191-7/+5
| | | | | | | | | | | | | | | | 0.11 uses as instance ide io_base, get it back Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 47f5ba724871622c7db7a73fd05d6b3646478dd6)
* | Revert "fdc: fix vmstate variable passed"Juan Quintela2009-12-191-29/+4
| | | | | | | | | | | | | | | | | | | | Floppy used the io_base address to register savevm region. This reverts commit 2966b390d0f7cd5e5b971290fcc20685de374228. Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit aef30c3c6a3165178584eb125f64defd8173eebd)
* | monitor: Accept input only byte-wiseJan Kiszka2009-12-191-1/+1
| | | | | | | | | | | | | | | | | | This allows to suspend command interpretation and execution synchronously, e.g. during migration. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit c62313bbdc48f72e93fa8196f2fff96ba35e4e9d)
* | Revert "kvm: x86: Save/restore exception_index"Anthony Liguori2009-12-192-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit ebbc8a3d8e76d0402f8a08c10c0f32e24715d41d. As suggested by Jan Kiszka, "It was obsoleted by d1793b836f8f123b961c613de1bb1c0c185c84cc and now saves/restores a useless field." Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit acb6685feaeea0989d29b6f12e96fea48e8ce9d9)
* | vmware: increase cursor buffer size.Dave Airlie2009-12-191-1/+1
| | | | | | | | | | | | | | | | | | The cursor pixmap size we calculate later ends up being 4096 dwords long by the looks of it. This boots an F12 LiveCD now. Signed-off-by: Dave Airlie <airlied@linux.ie> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 8095cb3ed22d74649fd247efb9518459eae4d92e)
* | VMware VGA: Only enable dirty log tracking when fifo is disabledAnthony Liguori2009-12-193-4/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | This patch enables dirty log tracking whenever it's needed and disables it when it is not. We unconditionally enable dirty log tracking on reset, restart dirty log tracking when PCI IO regions are remapped, and disable/enable it based on commands from the guest. Rebased-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit b5cc6e32baa9d98d50debe23229b303f89fe84f1)
* | Fix VMware VGA depth computationAnthony Liguori2009-12-191-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VMware VGA requires that the depth presented to the guest is the same as the DisplaySurface that it renders to. This is because it performs a very simple memcpy() to blit from one surface to another. We currently hardcode a 24-bit depth. The surface allocator for SDL may, and usually will, allocate a surface with a different depth causing screen corruption. This changes the code to allocate the DisplaySurface before initializing the device which allows the depth of the DisplaySurface to be used instead of hardcoding something. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit a6109ff1b5d7184a9d490c4ff94f175940232ebd)
* | Make sure to enable dirty log tracking for VMware VGAAnthony Liguori2009-12-191-0/+4
| | | | | | | | | | | | | | This is needed for VMware VGA to work properly under KVM. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit ee3e41a9a0194af21d0da75f5afd87bea3738cf3)
* | Make sure to enable dirty tracking of VBE vram mappingAnthony Liguori2009-12-195-19/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apparently, VBE maps the VGA vram to a fixed physical location. KVM requires that all mappings of the VGA vram have dirty tracking enabled on them. Any access to the VGA vram through the VBE mapping currently fails to result in dirty page tracking updates causing a black screen. This is the true root cause of VMware VGA not working correctly under KVM and likely also an issue with some of the std-vga black screen issues too. Cirrus does not enable VBE so it would not be a problem when using Cirrus. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Rebased-by: Dave Airlie <airlied@redhat.com> (cherry picked from commit f0138a63a41fe26bcef61d031ae53d872d12a992)
* | vmware: setup PCI BAR 2 for FIFO as per vmware specDave Airlie2009-12-191-5/+30
| | | | | | | | | | Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit f351d050dccfc469fecd353d095526d52e4632c6)
* | qdev: improve property error reporting.Gerd Hoffmann2009-12-191-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | Add a error message in case we fail to parse a qdev property. Also make qemu not abort() in case setting a global property can't be set. This used to be a clear programming error. The introduction of the -global switch changed that though, so better exit instead (after printing the new error message). Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 9ef5c4bf8132eb72db2dd83fce3fa0005a6dd13f)
* | fix vga names in default_listGerd Hoffmann2009-12-191-2/+2
| | | | | | | | | | | | | | | | | | Fix mismerge between 64465297 and 556cd098. Cc: Markus Armbruster <armbru@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 69fd02eea61e6d9e7cd7831ef26522a5ac9e146c)
* | usb-host: check mon before using it.Gerd Hoffmann2009-12-191-4/+7
| | | | | | | | | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit eba6fe8732cb5109b6fcf6a973d8959827eb7af4)
* | usb-net: use qdev for -usbdeviceGerd Hoffmann2009-12-193-52/+47
| | | | | | | | | | | | | | | | | | Rebased to master, adapted to device renaming by armbru, no other changes. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 42be86ce95db944910005aa981a8e9ae5e01b05a)