[Spice-commits] Changes to 'usb.2'
Gerd Hoffmann
kraxel at kemper.freedesktop.org
Thu Dec 9 02:21:18 PST 2010
New branch 'usb.2' available with the following commits:
commit 57fe7545159d1337f8e4e7e8ae5f52dc0b3fc3af
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Fri Dec 3 17:11:25 2010 +0100
usb host: high speed support
Unmodified from git://git.kiszka.org/qemu.git ehci
commit 39d877cd19614c2fc15ae69b59998b4ba8e90f01
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Fri Dec 3 16:17:28 2010 +0100
usb: add ehci adapter
Based on git://git.kiszka.org/qemu.git ehci
Changes:
Adapt to changes in this usb branch.
Not automagically created.
Code style fixups.
Add quickstart docs.
commit cea17beb42b09fbf8338facfc4cf6eb55f73e316
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Fri Dec 3 14:21:19 2010 +0100
[debug] uhci packet logging (off)
commit 1cef6ec5a6dcb10fe9b86a4c8dee1112e2e47f67
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Wed Dec 8 13:17:51 2010 +0100
{debug] usb packet logging: off
commit 817fab00809293ae9e0f88bf0d42638400147ed4
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Fri Dec 3 09:34:41 2010 +0100
[debug] usb packet logging
commit 0f24b05c8ff0316379f7bd05cbb7a9e617d243c2
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Fri Dec 3 14:21:49 2010 +0100
[debug] timer tracking: off
commit c3cc26ab66c6e4dd2ed680020fb9e2b1a1903a96
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Tue Nov 16 09:26:44 2010 +0100
[debug] timer tracking
commit c20fcaa4604874f1a98cb18f005e8c4c50abf9fd
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Thu Dec 9 10:36:35 2010 +0100
usb storage: fix status reporting
Change usb_msd_send_status() to take a pointer to the status packet
instead of writing the status to s->usb_buf which might not point
to the correct location.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit b09b278f231d4f31f9f43895fe18128a75f2301f
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Fri Dec 3 17:12:49 2010 +0100
usb storage: high speed support
Add high speed support to the usb mass storage device. With this patch
applied the linux kernel recognises the usb storage device as highspeed
capable device and suggests to connect it to a highspeed port instead of
the uhci. Tested with both uhci and (not-yet submitted) ehci.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit 3351e9b4e75e206111aa23e9974a2494008e3042
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Wed Dec 8 17:35:22 2010 +0100
usb: add device qualifier support
Add support for device_qualifier and other_speed_config descriptors.
These are used to query the "other speed" configuration of usb 2.0
devices, i.e. in high-speed mode they return the full-speed
configuration and visa versa.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit e9fb56cdf960c305848bea4f6c879da9e9a72199
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Fri Dec 3 18:07:20 2010 +0100
usb: add usb_desc_attach
Add usb_desc_attach() which sets up the device according to the speed
the usb port is able to handle. This function can be hooked into the
handle_attach callback.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit a6bc798d36b906e95877f95fbb90ac11abcaa0a8
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Fri Dec 3 17:59:36 2010 +0100
usb: add attach callback
Add handle_attach() callback to USBDeviceInfo which is called by the
generic package handler when the device is attached to the usb bus
(i.e. plugged into a port).
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit 67fc3353170e73180f73637068b416c4e1a22f5b
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Fri Dec 3 17:30:13 2010 +0100
usb: add speed mask to ports
Add a field to usb ports indicating the speed(s) they are
able to handle.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit 1d1a85460507e3335490159621059e089ce6fc70
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Wed Dec 1 11:50:04 2010 +0100
usb: hid: remote wakeup support.
Add usb_wakeup() call to the hid driver so remote wakeup actually works.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit 5c8c0d9d489669f1efd6a19c21a77b71f4045c8d
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Wed Dec 1 11:47:40 2010 +0100
usb: uhci: remote wakeup support.
Add support for remote wakeup to the UHCI adapter.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit 79f5c456a8cea899dd596966f1a5685381d5588b
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Wed Dec 1 11:32:45 2010 +0100
usb: add usb_wakeup() + wakeup callback to port ops
Add wakeup callback to port ops for remote wakeup handling.
Also add a usb_wakeup() function for devices which want
trigger a remote wakeup.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit 9d7fad8af5a3cb90608ce59d4c5700513905f205
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Wed Dec 1 11:27:05 2010 +0100
usb: rework attach/detach workflow
Add separate detach callback to USBPortOps, split
uhci/ohci/musb/usbhub attach functions into two.
Move common code to the usb_attach() function, only
the hardware-specific bits remain in the attach/detach
callbacks.
Keep track of the port it is attached to for each usb device.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit 55828bb6fdf031e46d6eb48747d8fe158ce98307
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Wed Dec 1 11:08:44 2010 +0100
usb: create USBPortOps, move attach there.
Create USBPortOps struct, move the attach function to that struct.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit b308eec30d1528a90ebcc7cbb62c6baef98b8fed
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Tue Nov 30 17:35:34 2010 +0100
usb: move remote wakeup handling to common code
This patch moves setting and clearing the remote_wakeup feature
bit (via USB_REQ_{SET,CLEAR}_FEATURE) to common code. Also
USB_REQ_GET_STATUS handling is moved to common code.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit 3b2263e86c7ee57899d40f24f5b21f6781e69bfe
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Fri Nov 26 20:20:41 2010 +0100
usb: move USB_REQ_{GET,SET}_CONFIGURATION handling to common code
This patch adds fields to the USBDevice struct for the current
speed (hard-wired to full speed for now) and current device
configuration. Also a init function is added which inializes
these fields. This allows USB_REQ_{GET,SET}_CONFIGURATION
handling to be moved to common code.
For most drivers the conversion is trivial ad they support a single
configuration only anyway. One exception is bluetooth where some
device-specific setup code runs after get/set configuration. The
other is usb-net which actually has two configurations so the
the code to check for the active configuration has been adapted.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit 9e164f0d7c67fd72508e1a7f070e20be8f169900
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Fri Nov 26 12:35:10 2010 +0100
usb: move USB_REQ_SET_ADDRESS handling to common code
USB_REQ_SET_ADDRESS handling is identical in *all* emulated devices.
Move it to common code.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit 740edff70a37925ee1b632a415bf9d2630949fe0
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Fri Nov 26 10:25:06 2010 +0100
usb network: use new descriptor infrastructure.
Switch the usb network driver over to the
new descriptor infrastructure.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit 9018881f990fd33543754dd2c18682562362a1ac
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Fri Nov 26 12:26:17 2010 +0100
usb storage: serial number support
If a serial number is present for the drive fill it into the usb
serialnumber string descriptor.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit 27cf1e3a92b541c662e5f778506bf760b8343986
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Fri Nov 26 12:25:32 2010 +0100
usb descriptors: add settable strings.
This patch allows to set usb descriptor strings per device instance.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit 12a8fc11c869fc77629b9a0e7332665c434d09bb
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Fri Nov 26 13:13:22 2010 +0100
usb hub: use new descriptor infrastructure.
Switch the usb hub driver over to the
new descriptor infrastructure.
It also removes the nr_ports variable and MAX_PORTS define and
introduces a NUM_PORTS define instead. The numver of ports was
(and still is) fixed at 8 anyway.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit 6a82993688009172134c43dd97e6d47f68c87599
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Thu Nov 25 16:12:18 2010 +0100
usb bluetooth: use new descriptor infrastructure.
Switch the usb bluetooth driver over to the
new descriptor infrastructure.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit d25ae7b0b4a7aa5858fa3e85aa289e0082ae299c
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Thu Nov 25 16:12:06 2010 +0100
usb wacom: use new descriptor infrastructure.
Switch the usb wavom driver over to the
new descriptor infrastructure.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit f526f02b69149319b4d6b360cdb705e178c04d18
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Wed Nov 17 11:05:41 2010 +0100
usb storage: use new descriptor infrastructure.
Switch the usb storage driver over to the
new descriptor infrastructure.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit 6deed04aa9803aaaa8b3a55fc099570caaddc4a1
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Wed Nov 17 11:05:32 2010 +0100
usb serial: use new descriptor infrastructure.
Switch the usb serial drivers (serial, braille) over to the
new descriptor infrastructure.
Note that this removes the freely configurable vendor and product id
properties. I think the only reason this was configurable is that the
only difference between the serial and the braille device is the
vendor+product id. Of course the serial and braille devices keep their
different IDs, but they can't be overritten from the command line any
more.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit 7a1a69e66b3d36cd1792eac8aa9bc7c3f000dcb0
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Wed Nov 17 11:05:05 2010 +0100
usb hid: use new descriptor infrastructure.
Switch the usb hid drivers (keyboard, mouse, tablet) over to the
new descriptor infrastructure.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit be253e7003fbb7d132c8db83b7d983915e927cc1
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Wed Nov 17 11:03:53 2010 +0100
usb: data structs and helpers for usb descriptors.
This patch adds hw/usb-desc.[ch] files. They carry data structures
for various usb descriptors and helper functions to generate usb
packets from the structures.
The intention is to have a internal representation of the device
desription which is more usable than the current char array blobs,
so we can have common code handle common usb device emulation using
the device description.
The usage of this infrastructure is optional for usb drivers as there
are cases such as pass-through where it probably isn't very useful.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
commit d9e0e3014dc037f6f7aac8c45b5f533895c081af
Author: H. Peter Anvin <hpa at linux.intel.com>
Date: Fri Sep 10 14:47:56 2010 -0700
Add support for a USB audio device model
This brings a usb audio device to qemu. Output only, fixed at
16bit stereo @ 480000 Hz. Based on a patch from
H. Peter Anvin <hpa at linux.intel.com>
Usage: add '-device usb-audio' to your qemu command line.
Works sorta ok on a idle machine. Known issues:
* Is *very* sensitive to latencies: when the uhci emulation misses one
of the usb frame rate wakeups (1k/sec!) you'll loose/delay data from
the audio stream, resulting in dropouts.
* Also seems to not play very well with the usb tablet (and/or usb hub,
to be investigated). Best try this as the only device on a usb bus.
* Burns quite some CPU due to usb polling.
In short: It brings the qemu usb emulation to its limits. Enjoy!
commit 138b38b61bf92d4e9588acf934e532499c94e185
Author: Alexander Graf <agraf at suse.de>
Date: Thu Nov 25 08:20:46 2010 +0100
ppc: kvm: fix signedness warning
I get a warning on a signed comparison with an unsigned variable, so
let's make the variable signed and be happy.
Signed-off-by: Alexander Graf <agraf at suse.de>
Signed-off-by: Edgar E. Iglesias <edgar at axis.com>
commit 2c90fe2b71df2534884bce96d90cbfcc93aeedb8
Author: Kirill Batuzov <batuzovk at ispras.ru>
Date: Thu Dec 2 16:12:46 2010 +0300
Speedup 'tb_find_slow' by using the same heuristic as during memory page lookup
Move the last found TB to the head of the list so it will be found more quickly next time it will be looked for.
Signed-off-by: Kirill Batuzov <batuzovk at ispras.ru>
Signed-off-by: Pavel Yushchenko <pau at ispras.ru>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit 53016fa69c1fc7ed257272f36cb84b6623f73332
Author: Peter Maydell <peter.maydell at linaro.org>
Date: Wed Dec 1 19:44:38 2010 +0000
Remove unused spin_trylock() function
Remove the spin_trylock() function, as it is not used anywhere,
and is not even implemented if CONFIG_USE_NPTL is defined.
Signed-off-by: Peter Maydell <peter.maydell at linaro.org>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit edcdd562baff02bb8de974c46a2b984b7d5b0da9
Author: Stefan Weil <weil at mail.berlios.de>
Date: Mon Nov 15 21:00:48 2010 +0100
darwin-user: Use GCC_FMT_ATTR (format checking)
The redundant forward declaration of qerror in machload.c
is removed because it should be taken from qemu.h.
Please note that this patch is untested because
I have no matching environment to compile it.
Cc: Blue Swirl <blauwirbel at gmail.com>
Signed-off-by: Stefan Weil <weil at mail.berlios.de>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit ab9de3692e34dc874ce44c7905590ef98445ce33
Author: Stefan Weil <weil at mail.berlios.de>
Date: Mon Nov 15 20:54:12 2010 +0100
audio: Use GCC_FMT_ATTR (format checking)
Cc: Blue Swirl <blauwirbel at gmail.com>
Signed-off-by: Stefan Weil <weil at mail.berlios.de>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit 047b39e47ca07cf68bdf4074031e8e41bf7de641
Author: Stefan Weil <weil at mail.berlios.de>
Date: Mon Nov 15 19:58:41 2010 +0100
target-sparc: Use fprintf_function (format checking)
This change was missing in commit
9a78eead0c74333a394c0f7bbfc4423ac746fcd5.
Cc: Blue Swirl <blauwirbel at gmail.com>
Signed-off-by: Stefan Weil <weil at mail.berlios.de>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit 6e2d864edf5ef4d75e2fec061f4cd247b4d315be
Author: Stefan Weil <weil at mail.berlios.de>
Date: Mon Nov 15 19:39:43 2010 +0100
*-dis: Replace fprintf_ftype by fprintf_function (format checking)
This patch adds more printf format checking.
Additional modifications were needed for this code change:
* alpha-dis.c: The local definition of MAX conflicts with
a previous definition from osdep.h, so add an #undef.
* dis-asm.h: Add include for fprintf_function (qemu-common.h).
The standard (now redundant) includes are removed.
* mis-dis.c: The definition of ARRAY_SIZE is no longer needed
and must be removed (conflict with previous definition from
qemu-common.h).
* sh4-dis.c: Remove some unneeded forward declarations.
Cc: Blue Swirl <blauwirbel at gmail.com>
Signed-off-by: Stefan Weil <weil at mail.berlios.de>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit e6e055c9d79c665de200fc46c746d403d3d943ad
Author: Blue Swirl <blauwirbel at gmail.com>
Date: Sat Dec 4 17:37:35 2010 +0000
Fix mingw32 and OpenBSD warnings
ffsl() is not universally available, so there are these warnings
on both mingw32 and OpenBSD:
/src/qemu/hw/pcie_aer.c: In function 'pcie_aer_update_log':
/src/qemu/hw/pcie_aer.c:399: warning: implicit declaration of function 'ffsl'
Since status field in PCIEAERErr is uint32_t, we can just use ffs() instead.
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
commit bcd478781ab1d11911ab5505c34b5577de904eeb
Merge: db1923de6099fd2d1eee0693757a639978b15e1b b2e7aab2502260a18c68072f6b6e4271385663c4
Author: Edgar E. Iglesias <edgar at axis.com>
Date: Sat Dec 4 04:18:28 2010 +0100
Merge branch 'linux-user-for-upstream' of git://gitorious.org/qemu-maemo/qemu
* 'linux-user-for-upstream' of git://gitorious.org/qemu-maemo/qemu:
linux-user: fix mips and ppc to use UID16
update binfmt conf
linux-user: fix compiler error on nptl
ARM: linux-user: Restore iWMMXT state from ucontext on sigreturn
ARM: linux-user: Expose iWMMXT registers to signal handlers
ARM: linux-user: Restore VFP state from ucontext on sigreturn
ARM: linux-user: Expose VFP registers to signal handlers
ARM: Expose vfp_get_fpscr() and vfp_set_fpscr() to C code
ARM: linux-user: Correct size of padding in target_ucontext_v2
target-sparc: remove unused functions cpu_lock(), cpu_unlock()
ARM: enable XScale/iWMMXT in linux-user mode
linux-user: Translate getsockopt level option
linux-user: remove unnecessary local from __get_user(), __put_user()
linux-user: fix memory leaks with NPTL emulation
linux-user: mmap_reserve() not controlled by RESERVED_VA
[PATCH] target-arm: remove unused functions cpu_lock(), cpu_unlock()
commit db1923de6099fd2d1eee0693757a639978b15e1b
Author: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
Date: Fri Dec 3 17:09:01 2010 +0000
exec: Remove debugging fprintf() that slipped into qemu_ram_alloc_from_ptr()
Remove the debugging fprintf() slipped in via the following commit:
commit b2e0a138e77245290428a7d599a929e2e1bfe510
Author: Michael S. Tsirkin <mst at redhat.com>
Date: Mon Nov 22 19:52:34 2010 +0200
migration: stable ram block ordering
Signed-off-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit b2e7aab2502260a18c68072f6b6e4271385663c4
Author: Martin Mohring <martin.mohring at 5edatasoft.com>
Date: Sun Nov 7 20:31:57 2010 +0100
linux-user: fix mips and ppc to use UID16
Signed-off-by: Martin Mohring <martin.mohring at 5edatasoft.com>
Signed-off-by: Jan-Simon Möller <jsmoeller at linuxfoundation.org>
Signed-off-by: Riku Voipio <riku.voipio at nokia.com>
commit 644d67777947d64d13a27bc67fff9f66815ef4c0
Author: Riku Voipio <riku.voipio at nokia.com>
Date: Wed Dec 1 14:53:10 2010 +0200
update binfmt conf
1) dont register i386 qemu on x86_64 host
2) widen sparc and arm match
3) add sh4, based on patch by David Kozub <zub at linux.fjfi.cvut.cz>
Rest based on patch by Jan-Simon Möller <jsmoeller at linuxfoundation.org>
commit 9190749fbe075ece4a72380cc3dea919a8f960c3
Author: Riku Voipio <riku.voipio at nokia.com>
Date: Fri Nov 26 16:21:34 2010 +0200
linux-user: fix compiler error on nptl
Some compilers detect that new_stack isnt used after dd75d784
Signed-off-by: Riku Voipio <riku.voipio at nokia.com>
commit a59d69da66da551fa078e05ff08cf535b768c308
Author: Peter Maydell <peter.maydell at linaro.org>
Date: Wed Nov 24 15:20:08 2010 +0000
ARM: linux-user: Restore iWMMXT state from ucontext on sigreturn
Signed-off-by: Peter Maydell <peter.maydell at linaro.org>
Signed-off-by: Riku Voipio <riku.voipio at nokia.com>
commit 08e11256f6a0caae9b8f18fb6a71359b590d97c6
Author: Peter Maydell <peter.maydell at linaro.org>
Date: Wed Nov 24 15:20:07 2010 +0000
ARM: linux-user: Expose iWMMXT registers to signal handlers
Signed-off-by: Peter Maydell <peter.maydell at linaro.org>
Signed-off-by: Riku Voipio <riku.voipio at nokia.com>
commit 5f9099d9cee0e9ed377aee705ca9f4db75e8948d
Author: Peter Maydell <peter.maydell at linaro.org>
Date: Wed Nov 24 15:20:06 2010 +0000
ARM: linux-user: Restore VFP state from ucontext on sigreturn
Restore the VFP registers from the ucontext on return from a signal
handler in linux-user mode. This means that signal handlers cannot
accidentally corrupt the interrupted code's VFP state, and allows
them to deliberately modify the state via the ucontext structure.
Signed-off-by: Peter Maydell <peter.maydell at linaro.org>
Signed-off-by: Riku Voipio <riku.voipio at nokia.com>
commit 0d871bdbaac428601c84d29233a49f7cf6ecb6fc
Author: Peter Maydell <peter.maydell at linaro.org>
Date: Wed Nov 24 15:20:05 2010 +0000
ARM: linux-user: Expose VFP registers to signal handlers
For ARM linux-user mode signal handlers, fill in the ucontext with
VFP register contents in the same way that the kernel does. We only
do this for v2 format sigframe (2.6.12 and above); this is actually
bug-for-bug compatible with the older kernels, which don't save and
restore VFP registers either.
Signed-off-by: Peter Maydell <peter.maydell at linaro.org>
Signed-off-by: Riku Voipio <riku.voipio at nokia.com>
commit 0165329578eb8f40901825177c0874efb815e342
Author: Peter Maydell <peter.maydell at linaro.org>
Date: Wed Nov 24 15:20:04 2010 +0000
ARM: Expose vfp_get_fpscr() and vfp_set_fpscr() to C code
Expose the vfp_get_fpscr() and vfp_set_fpscr() functions to C
code as well as generated code, so we can use them to read and
write the FPSCR when saving and restoring VFP registers across
signal handlers in linux-user mode.
Signed-off-by: Peter Maydell <peter.maydell at linaro.org>
Signed-off-by: Riku Voipio <riku.voipio at nokia.com>
commit 5f0b7c888b5e626d61e0969a6c0dbf4fcf0f522c
Author: Peter Maydell <peter.maydell at linaro.org>
Date: Wed Nov 24 15:20:03 2010 +0000
ARM: linux-user: Correct size of padding in target_ucontext_v2
The padding in the target_ucontext_v2 is defined by the size of
the target's sigset_t type, not the host's. (This bug only causes
problems when we start using the uc_regspace[] array to expose
VFP registers to userspace signal handlers.)
Signed-off-by: Peter Maydell <peter.maydell at linaro.org>
Signed-off-by: Riku Voipio <riku.voipio at nokia.com>
commit ef5e4ea587c10d3a936f807d6fa2a81c71a86511
Author: Peter Maydell <peter.maydell at linaro.org>
Date: Fri Nov 19 13:54:39 2010 +0000
target-sparc: remove unused functions cpu_lock(), cpu_unlock()
commit 3a807decfa5245d3eb50c9301e73fc5da4a484e1
Author: Peter Maydell <peter.maydell at linaro.org>
Date: Fri Nov 19 15:36:47 2010 +0000
ARM: enable XScale/iWMMXT in linux-user mode
In linux-user mode, the XScale/iWMMXT coprocessors must be enabled
at reset so that we can run code that uses these instructions.
Signed-off-by: Peter Maydell <peter.maydell at linaro.org>
commit f3b974cd3bb624cc7a3004db902b59d599ff016a
Author: Jamie Lentin <jm at lentin.co.uk>
Date: Fri Nov 26 15:04:08 2010 +0200
linux-user: Translate getsockopt level option
n setsockopt, the socket level options are translated to the hosts'
architecture before the real syscall is called, e.g.
TARGET_SO_TYPE -> SO_TYPE. This patch does the same with getsockopt.
Tested on a x86 host emulating MIPS. Without it:-
$ grep getsockopt host.strace
31311 getsockopt(3, SOL_SOCKET, 0x1007 /* SO_??? */, 0xbff17208,
0xbff17204) = -1 ENOPROTOOPT (Protocol not available)
With:-
$ grep getsockopt host.strace
25706 getsockopt(3, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
Whitespace cleanup: Riku Voipio
Signed-off-by: Jamie Lentin <jm at lentin.co.uk>
Signed-off-by: Riku Voipio <riku.voipio at iki.fi>
commit bee70008074570ef2c368aec80918c2494065247
Author: Peter Maydell <peter.maydell at linaro.org>
Date: Mon Nov 8 18:13:58 2010 +0000
linux-user: remove unnecessary local from __get_user(), __put_user()
Remove an unnecessary local variable from the __get_user() and
__put_user() macros. This avoids confusing compilation failures
if the name of the local variable ('size') happens to be the
same as the variable the macro user is trying to read/write.
Signed-off-by: Peter Maydell <peter.maydell at linaro.org>
Signed-off-by: Riku Voipio <riku.voipio at nokia.com>
commit 48e15fc2de29276f0c93482f5175b95e50557fbf
Author: Nathan Froyd <froydnj at codesourcery.com>
Date: Fri Oct 29 07:48:57 2010 -0700
linux-user: fix memory leaks with NPTL emulation
Running programs that create large numbers of threads, such as this
snippet from libstdc++'s pthread7-rope.cc:
const int max_thread_count = 4;
const int max_loop_count = 10000;
...
for (int j = 0; j < max_loop_count; j++)
{
...
for (int i = 0; i < max_thread_count; i++)
pthread_create (&tid[i], NULL, thread_main, 0);
for (int i = 0; i < max_thread_count; i++)
pthread_join (tid[i], NULL);
}
in user-mode emulation will quickly run out of memory. This is caused
by a failure to free memory in do_syscall prior to thread exit:
/* TODO: Free CPU state. */
pthread_exit(NULL);
The first step in fixing this is to make all TaskStates used by QEMU
dynamically allocated. The TaskState used by the initial thread was
not, as it was allocated on main's stack. So fix that, free the
cpu_env, free the TaskState, and we're home free, right?
Not exactly. When we create a thread, we do:
ts = qemu_mallocz(sizeof(TaskState) + NEW_STACK_SIZE);
...
new_stack = ts->stack;
...
ret = pthread_attr_setstack(&attr, new_stack, NEW_STACK_SIZE);
If we blindly free the TaskState, then, we yank the current (host)
thread's stack out from underneath it while it still has things to do,
like calling pthread_exit. That causes problems, as you might expect.
The solution adopted here is to let the C library allocate the thread's
stack (so the C library can properly clean it up at pthread_exit) and
provide a hint that we want NEW_STACK_SIZE bytes of stack.
With those two changes, we're done, right? Well, almost. You see,
we're creating all these host threads and their parent threads never
bother to check that their children are finished. There's no good place
for the parent threads to do so. Therefore, we need to create the
threads in a detached state so the parent thread doesn't have to call
pthread_join on the child to release the child's resources; the child
does so automatically.
With those three major changes, we can comfortably run programs like the
above without exhausting memory. We do need to delete 'stack' from the
TaskState structure.
Signed-off-by: Nathan Froyd <froydnj at codesourcery.com>
Signed-off-by: Riku Voipio <riku.voipio at nokia.com>
commit c65ffe6d6ca8b156e729e81054ca7597864354a9
Author: amateur <tianlei.zhao at gmail.com>
Date: Tue Sep 14 13:22:34 2010 +0800
linux-user: mmap_reserve() not controlled by RESERVED_VA
mmap_reserve() should be called only when RESERVED_VA is enabled.
Otherwise, unmaped virtual address space will never be reusable. This
bug will exhaust virtual address space in extreme conditions.
Signed-off-by: Riku Voipio <riku.voipio at nokia.com>
commit b0e102dd22e7a158fa3dc4148ab6c2e78b363071
Author: Peter Maydell <peter.maydell at linaro.org>
Date: Fri Nov 19 13:54:44 2010 +0000
[PATCH] target-arm: remove unused functions cpu_lock(), cpu_unlock()
Signed-off-by: Riku Voipio <riku.voipio at nokia.com>
commit 6a8657528d94fa1be78d1be0821a01a251fa2de9
Author: Anthony Liguori <aliguori at us.ibm.com>
Date: Thu Dec 2 14:41:59 2010 -0600
Fix build
msix.o and msi.o get pulled into the build unconditionally for QMP.
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
commit 19c71ff41c029517c11ae67d6fbcb093a5d1150f
Merge: 393f398b69f9baadc3f29d822a0b5b74ca63b919 0c600ce2a7a419c7247b2ac63327dea5daa3d5a2
Author: Anthony Liguori <aliguori at us.ibm.com>
Date: Thu Dec 2 14:16:40 2010 -0600
Merge remote branch 'mst/for_anthony' into staging
commit 0c600ce2a7a419c7247b2ac63327dea5daa3d5a2
Author: Jason Wang <jasowang at redhat.com>
Date: Sat Nov 27 22:05:07 2010 +0800
vhost: Fix address calculation in vhost_dev_sync_region()
We still need advance address even we find there's no dirty pages in
current chunk.
Signed-off-by: Jason Wang <jasowang at redhat.com>
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
commit 3d002df33eb034757d98e1ae529318f57df78f91
Author: Michael S. Tsirkin <mst at redhat.com>
Date: Tue Nov 23 19:05:54 2010 +0200
migration: allow rate > 4g
I'd like to disable bandwidth limit or make it very high,
Use int64_t all over to make values >= 4g work.
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
Tested-by: Jason Wang <jasowang at redhat.com>
commit b2e0a138e77245290428a7d599a929e2e1bfe510
Author: Michael S. Tsirkin <mst at redhat.com>
Date: Mon Nov 22 19:52:34 2010 +0200
migration: stable ram block ordering
This makes ram block ordering under migration stable, ordered by offset.
This is especially useful for migration to exec, for debugging.
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
Tested-by: Jason Wang <jasowang at redhat.com>
commit 393f398b69f9baadc3f29d822a0b5b74ca63b919
Author: Richard Henderson <rth at twiddle.net>
Date: Mon Nov 22 14:57:58 2010 -0800
tcg-ia64: Fix warning in qemu_ld.
The usermode version of qemu_ld doesn't used mem_index,
leading to set-but-not-used warnings.
Signed-off-by: Richard Henderson <rth at twiddle.net>
Signed-off-by: Edgar E. Iglesias <edgar at axis.com>
commit 07f59737d8350fda70171bb7c23d18512d9c038a
Author: Richard Henderson <rth at twiddle.net>
Date: Mon Nov 22 14:57:57 2010 -0800
tcg-ia64: Fix address compilation in qemu_st.
A typo in the usermode address calculation path; R3 used where R2 needed.
Signed-off-by: Richard Henderson <rth at twiddle.net>
Signed-off-by: Edgar E. Iglesias <edgar at axis.com>
commit 650a217a652a940c164d5a38cedc4d6671da88ce
Author: Richard Henderson <rth at twiddle.net>
Date: Mon Nov 22 14:57:56 2010 -0800
tcg-ia64: Fix tlb read error for 32-bit targets.
Use ld4 not ld8 for reading the tlb of 32-bit targets.
Signed-off-by: Richard Henderson <rth at twiddle.net>
Signed-off-by: Edgar E. Iglesias <edgar at axis.com>
commit b3b0091f07e1c25ba795b3df3ee3c169285f852d
Author: Richard Henderson <rth at twiddle.net>
Date: Mon Nov 22 14:57:55 2010 -0800
tcg-ia64: Implement qemu_ld32.
The port was not properly merged following
86feb1c860dc38e9c89e787c5210e8191800385e
Signed-off-by: Richard Henderson <rth at twiddle.net>
Signed-off-by: Edgar E. Iglesias <edgar at axis.com>
commit 255108c0e3c78bc437789a3626e53079ef322a4e
Author: Richard Henderson <rth at twiddle.net>
Date: Mon Nov 22 14:57:54 2010 -0800
tcg-ia64: Provide default GUEST_BASE.
Fix compilation error when GUEST_BASE is not defined.
Signed-off-by: Richard Henderson <rth at twiddle.net>
Signed-off-by: Edgar E. Iglesias <edgar at axis.com>
commit 0909cbde9a1d42be9ab81f4f7e7d89c358212fd1
Author: Richard Henderson <rth at redhat.com>
Date: Mon Nov 22 14:57:53 2010 -0800
tcg: Fix default definition of divu_i32 and remu_i32.
The arguments to tcg_gen_helper32 for these functions were not
updated correctly in rev 2bece2c88331f024a46527634e3dd91c71d22141.
Signed-off-by: Richard Henderson <rth at twiddle.net>
Signed-off-by: Edgar E. Iglesias <edgar at axis.com>
commit c924f36a300cbc54d3cb511116e8e2bae17f5ae6
Merge: 1abeb5a65d515f8a8a9cfc4a82342f731bd9321f 09fa35e5cdc7d17ed3e1528ca743893ae77a0ea2
Author: Michael S. Tsirkin <mst at redhat.com>
Date: Wed Dec 1 07:11:51 2010 +0200
Merge remote branch 'origin/master' into pci
Conflicts:
Makefile.objs
hw/virtio.c
commit 09fa35e5cdc7d17ed3e1528ca743893ae77a0ea2
Merge: 9233da785f55c924c5850cd1ce1b7f5f200d631b b76876e602ca09ff848d99595a506feb1fd54ff4
Author: Anthony Liguori <aliguori at us.ibm.com>
Date: Tue Nov 30 15:25:34 2010 -0600
Merge remote branch 'kwolf/for-anthony' into staging
commit 9233da785f55c924c5850cd1ce1b7f5f200d631b
Merge: fd5d5c566af040be15f2cae1b14a47919974453d a6f9dd02f75685934ca52f038b6fcb38b661c283
Author: Anthony Liguori <aliguori at us.ibm.com>
Date: Tue Nov 30 15:24:26 2010 -0600
Merge remote branch 'qmp/for-anthony' into staging
commit fd5d5c566af040be15f2cae1b14a47919974453d
Author: Anthony Liguori <aliguori at us.ibm.com>
Date: Thu Sep 9 14:51:31 2010 -0500
Use a Linux-style MAINTAINERS file
I make no claims that this is accurate or exhaustive but I think it's a
reasonable place to start.
As the file mentions, the purpose of this file is to give contributors
information about who they can go to with questions about a particular piece of
code or who they can ask for review.
If you sign up for a piece of code and indicate that it's Maintained or
Supported, please be prepared to be responsive to questions about that
subsystem.
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
---
v1 -> v2
- Sort alphabetically
- Copy in instructions from linux MAINTAINERS
- Fix entries based on review feedback
commit b76876e602ca09ff848d99595a506feb1fd54ff4
Author: Kevin Wolf <kwolf at redhat.com>
Date: Fri Nov 26 16:36:16 2010 +0100
ide: Reset current_addr after stopping DMA
Whenever SSBM is reset in the command register all state information is lost.
Restarting DMA means that current_addr must be reset to the base address of the
PRD table. The OS is not required to change the base address register before
starting a DMA operation, it can reuse the value it wrote for an earlier
request.
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
commit c29947bbb0978d312074ec73be968bfab1b6c977
Author: Kevin Wolf <kwolf at redhat.com>
Date: Fri Nov 26 16:44:53 2010 +0100
ide: Ignore double DMA transfer starts/stops
You can only start a DMA transfer if it's not running yet, and you can only
cancel it if it's running.
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
commit e3982b3cf6d17fbba6839d5252f5f757a8d585dc
Author: Kevin Wolf <kwolf at redhat.com>
Date: Fri Nov 26 16:47:42 2010 +0100
ide: Set bus master inactive on error
BMIDEA in the status register must be cleared on error. This makes FreeBSD
respond (more) correctly to I/O errors.
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
commit 8337606d3588f80aea656db74127423bd6b61443
Author: Kevin Wolf <kwolf at redhat.com>
Date: Fri Nov 26 16:31:37 2010 +0100
ide: Factor ide_dma_set_inactive out
Several places that stop a DMA transfer duplicate this code. Factor it out into
a common function.
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
commit 11a3cb8159278f7452b5bec8b9e17292a3ef53c3
Author: Christoph Hellwig <hch at lst.de>
Date: Fri Nov 26 14:32:34 2010 +0100
raw-posix: raw_pwrite comment fixup
Signed-off-by: Christoph Hellwig <hch at lst.de>
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
commit 2dd791b6302c73345f92dc9b107635787fcff938
Author: Hannes Reinecke <hare at suse.de>
Date: Wed Nov 24 12:16:00 2010 +0100
scsi-disk: Remove duplicate cdb parsing
We parse the CDB twice, which is completely unnecessary.
Signed-off-by: Hannes Reinecke <hare at suse.de>
Acked-by: Christoph Hellwig <hch at lst.de>
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
commit a6d96eb78bd1f87ab9d6a377f863f99be4b71538
Author: Hannes Reinecke <hare at suse.de>
Date: Wed Nov 24 12:15:59 2010 +0100
scsi: Move sense handling into the driver
The current sense handling in scsi-bus is only used by the
scsi-disk driver; the scsi-generic driver is using its own.
So we should move the current sense handling into the
scsi-disk driver.
Signed-off-by: Hannes Reinecke <hare at suse.de>
Acked-by: Christoph Hellwig <hch at lst.de>
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
commit 39d989823f2c177415a22b84b354716a1f734b70
Author: Hannes Reinecke <hare at suse.de>
Date: Wed Nov 24 12:15:58 2010 +0100
scsi: INQUIRY VPD fixes
We should announce and support the block device characterics page
only on block devices, not on CDROMs. And the VPD page 0x83 has
an off-by-one error.
Signed-off-by: Hannes Reinecke <hare at suse.de>
Acked-by: Christoph Hellwig <hch at lst.de>
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
commit f017132793065abcdc4b9b78d7ca575eeb3de484
Author: Hannes Reinecke <hare at suse.de>
Date: Wed Nov 24 12:15:57 2010 +0100
scsi: Return SAM status codes
Traditionally, the linux stack is using SCSI status codes
which are shifted by one as compared to those defined in SAM.
A SCSI emulation should naturally return the SAM defined codes,
not the linux ones.
So to avoid any confusion this patch modifies the existing
definitions to match those found in SAM and removes any
(now obsolete) byte-shift from the returned status codes.
Signed-off-by: Hannes Reinecke <hare at suse.de>
Acked-by: Christoph Hellwig <hch at lst.de>
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
commit 622b520fb4ca50b5028485f1d225317ece0a42b9
Author: Hannes Reinecke <hare at suse.de>
Date: Wed Nov 24 12:15:56 2010 +0100
scsi: Increase the number of possible devices
The SCSI parallel interface has a limit of 8 devices, but
not the SCSI stack in general. So we should be removing the
hard-coded limit and use MAX_SCSI_DEVS instead.
And we only need to scan those devices which are allocated
by the bus.
Signed-off-by: Hannes Reinecke <hare at suse.de>
Acked-by: Christoph Hellwig <hch at lst.de>
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
commit 80465c5016f23d8b39efb36db2ca77a35f67eaef
Author: Kevin Wolf <kwolf at redhat.com>
Date: Tue Nov 16 18:55:01 2010 +0100
block: Remove unused s->hd in various drivers
All drivers use bs->file instead of s->hd for quite a while now, so it's time
to remove s->hd.
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
commit 5cbdebe39e08caf5a373ef1c03a0292d5af955ce
Author: Stefano Stabellini <stefano.stabellini at eu.citrix.com>
Date: Wed Nov 24 13:08:03 2010 +0000
qemu and qemu-xen: support empty write barriers in xen_disk
This patch can be applied to both qemu-xen and qemu and adds support
for empty write barriers to xen_disk.
Signed-off-by: Stefano Stabellini <stefano.stabellini at eu.citrix.com>
Acked-by: Gerd Hoffmann <kraxel at redhat.com>
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
commit 9fbef1ac7cc888f29435e9f636b5dd14cd3260df
Author: Avi Kivity <avi at redhat.com>
Date: Sun Nov 21 18:29:52 2010 +0200
ide: convert bmdma address ioport to ioport_register()
cmd646, via compile tested, pci lightly boot tested.
Signed-off-by: Avi Kivity <avi at redhat.com>
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
commit 62155e2b51e3c282ddc30adbb6d7b8d3bb7c386e
Author: Marcelo Tosatti <mtosatti at redhat.com>
Date: Fri Nov 12 16:07:50 2010 -0200
block migration: do not submit multiple AIOs for same sector (v2)
An old version of this patch was applied to master, so this contains the
differences between v1 and v2.
Signed-off-by: Marcelo Tosatti <mtosatti at redhat.com>
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
commit 9063f81415f3518ef8206e74085c2a92c96890a0
Author: Ryan Harper <ryanh at us.ibm.com>
Date: Fri Nov 12 11:07:13 2010 -0600
Implement drive_del to decouple block removal from device removal
Currently device hotplug removal code is tied to device removal via
ACPI. All pci devices that are removable via device_del() require the
guest to respond to the request. In some cases the guest may not
respond leaving the device still accessible to the guest. The management
layer doesn't currently have a reliable way to revoke access to host
resource in the presence of an uncooperative guest.
This patch implements a new monitor command, drive_del, which
provides an explicit command to revoke access to a host block device.
drive_del first quiesces the block device (qemu_aio_flush;
bdrv_flush() and bdrv_close()). This prevents further IO from being
submitted against the host device. Finally, drive_del cleans up
pointers between the drive object (host resource) and the device
object (guest resource).
Signed-off-by: Ryan Harper <ryanh at us.ibm.com>
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
commit 6fa2c95f279dda62aa7e3292cc424ff3fab6a602
Author: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
Date: Fri Nov 12 09:57:11 2010 +0000
scsi-disk: Move active request asserts
SCSI read/write requests should not be re-issued before the current
fragment of I/O completes. There are asserts in scsi-disk.c that guard
this constraint but they trigger on SPARC Linux 2.4. It turns out that
the asserts are too early in the code path and don't allow for read
requests to terminate.
Only the read assert needs to be moved but move the write assert too for
consistency.
Reported-by: Nigel Horne <njh at bandsman.co.uk>
Signed-off-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf at redhat.com>
commit 1abeb5a65d515f8a8a9cfc4a82342f731bd9321f
Author: Michael S. Tsirkin <mst at redhat.com>
Date: Tue Nov 23 21:55:39 2010 +0200
virtio: fix up VQ checks
When migration triggers before a VQ is initialized,
base pa is 0 and last_used_index must be 0 too:
we don't have a ring to compare to.
Reported-by: Juan Quintela <quintela at redhat.com>
Tested-by: Juan Quintela <quintela at redhat.com>
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
commit ce67ed65000b8f56c6e0576a1a9d3c4b0f596f5c
Author: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
Date: Mon Nov 15 20:44:36 2010 +0000
virtio: Convert fprintf() to error_report()
Signed-off-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
(cherry picked from commit cd92f4cc22fbe12a7bf60c9430731f768dc1537c)
commit 929176c3b9f8d5feec9395401f889a3bfb95e816
Author: Michael S. Tsirkin <mst at redhat.com>
Date: Wed Nov 24 07:23:25 2010 +0200
pci: fix bus walk under secondary bus reset
Take into account secondary bus reset bit for
bus walk: devices behind a reset bus should not
respond to configuration cycles.
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
commit a5fce077b134a486794b77b49f4eae1d3c9b960c
Author: Isaku Yamahata <yamahata at valinux.co.jp>
Date: Fri Nov 19 18:56:03 2010 +0900
pci bridge: implement secondary bus reset
Trigger secondary bus reset when secondary bus reset bit
value changes from 0 to 1.
Signed-off-by: Isaku Yamahata <yamahata at valinux.co.jp>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
commit 9bb3358627d87d8de25fb41b7276575539d799a7
Author: Isaku Yamahata <yamahata at valinux.co.jp>
Date: Fri Nov 19 18:56:02 2010 +0900
pci: use qdev reset framework for pci bus reset
Signed-off-by: Isaku Yamahata <yamahata at valinux.co.jp>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
commit 5af0a04bea1f1704432b7c118c00a466e862bf00
Author: Isaku Yamahata <yamahata at valinux.co.jp>
Date: Fri Nov 19 18:56:01 2010 +0900
qdev: trigger reset from a given device
Introduce a helper function which triggers reset from a given device.
Will be used by pci bus emulation.
Signed-off-by: Isaku Yamahata <yamahata at valinux.co.jp>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
commit b4694b7ce8bd87c4b9c6c14ad74075a31b15c784
Author: Isaku Yamahata <yamahata at valinux.co.jp>
Date: Fri Nov 19 18:56:00 2010 +0900
qdev: introduce reset call back for qbus level
and make it called via qbus_reset_all().
The qbus reset callback will be used by pci bus reset.
Signed-off-by: Isaku Yamahata <yamahata at valinux.co.jp>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
commit ec990eb622ad46df5ddcb1e94c418c271894d416
Author: Anthony Liguori <anthony at codemonkey.ws>
Date: Fri Nov 19 18:55:59 2010 +0900
qdev: reset qdev along with qdev tree
This patch changes the reset handling so that qdev has no knowledge of the
global system reset. Instead, a new bus/device level function is introduced
that allows all devices/buses on the bus/device to be reset using a depth
first transversal.
N.B. we have to expose the implicit system bus because we have various hacks
that result in an implicit system bus existing. Instead, we ought to have an
explicitly created system bus that we can trigger reset from. That's a topic
for a future patch though.
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
Signed-off-by: Isaku Yamahata <yamahata at valinux.co.jp>
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
commit 81699d8a90deac361e9e14fd853f8341f40b2fad
Author: Anthony Liguori <anthony at codemonkey.ws>
Date: Fri Nov 19 18:55:58 2010 +0900
qbus: add functions to walk both devices and busses
There are some cases where you want to walk the busses, in particular, when
searching for a bus either by name or DeviceInfo.
Paolo suggested that we model the return values on how GCC's walkers work which
allows an actor to skip child transversal, or terminate walking with a positive
value that's returned as the qbus_walk_children's result.
Signed-off-by: Isaku Yamahata <yamahata at valinux.co.jp>
Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
commit 0389ced419d249d8742c69e177731b5d18ef3f2f
Author: Stefan Weil <weil at mail.berlios.de>
Date: Fri Oct 15 22:51:07 2010 +0200
eepro100: Use a single rom file for all i825xx devices
Patching the rom data during load (in qemu) now
also supports i82801 (which had no rom file).
We only need a single rom file for the whole device family,
so remove the second one which is no longer needed.
Cc: Markus Armbruster <armbru at redhat.com>
Cc: Michael S. Tsirkin <mst at redhat.com>
Signed-off-by: Stefan Weil <weil at mail.berlios.de>
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
commit ab85ceb1ad8797af2fb4c06bdc70f0ce0cf9b34f
Author: Stefan Weil <weil at mail.berlios.de>
Date: Tue Oct 19 23:08:21 2010 +0200
pci: Automatically patch PCI vendor id and device id in PCI ROM
PCI devices with different vendor or device ids sometimes share
the same rom code. Only the ids and the checksum
differs in a boot rom for such devices.
The i825xx ethernet controller family is a typical example
which is implemented in hw/eepro100.c. It uses at least
3 different device ids, so normally 3 boot roms would be needed.
By automatically patching vendor id and device id (and the checksum)
in qemu, all emulated family members can share the same boot rom.
VGA bios roms are another example with different vendor and device ids.
Only qemu's built-in default rom files will be patched.
v2:
* Patch also the vendor id (and remove the sanity check for vendor id).
v3:
* Don't patch a rom file when its name was set by the user.
Thus we avoid modifications of unknown rom data.
Cc: Gerd Hoffmann <kraxel at redhat.com>
Cc: Markus Armbruster <armbru at redhat.com>
Cc: Michael S. Tsirkin <mst at redhat.com>
Signed-off-by: Stefan Weil <weil at mail.berlios.de>
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
commit b90c73cf475d69959dde208d00961c3cb7a57475
Author: Stefan Weil <weil at mail.berlios.de>
Date: Fri Nov 19 19:29:07 2010 +0100
pci: Replace unneeded type casts in calls of pci_register_bar
There is no need for these type casts (as other existing
code shows). So re-write the first argument without
type cast (and remove a related TODO comment).
Cc: Michael S. Tsirkin <mst at redhat.com>
Signed-off-by: Stefan Weil <weil at mail.berlios.de>
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
commit bba5ed772a562fefdb218df8d821c3b537ce5759
Author: Isaku Yamahata <yamahata at valinux.co.jp>
Date: Fri Nov 19 13:28:45 2010 +0200
pcie/port: fix bridge control register wmask
pci generic layer initialized wmask for bridge control register
according to pci spec. pcie deviates slightly from it,
so initialize it properly.
Signed-off-by: Isaku Yamahata <yamahata at valinux.co.jp>
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
commit f6bdfcc9352e53fac5b9a144fc9ead991163484b
Author: Michael S. Tsirkin <mst at redhat.com>
Date: Thu Nov 18 10:42:50 2010 +0200
pci: fix bridge control bit wmask
Bits 12 to 15 in bridge control register are reserver and must be
read-only zero, curent mask is 0xffff which makes them writeable. Fix
this up by using symbolic bit names for writeable bits instead of a
hardcoded constant.
Fix a comment w1mask -> w1cmask as well.
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
commit 09b926d44674cbcf198425a5b8255e3cacb398ae
Author: Isaku Yamahata <yamahata at valinux.co.jp>
Date: Tue Nov 16 17:26:12 2010 +0900
x3130/downstream: support aer.
add aer support.
Signed-off-by: Isaku Yamahata <yamahata at valinux.co.jp>
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
commit a158f92fa78b1e87e5d196b72b750fedefb7b43e
Author: Isaku Yamahata <yamahata at valinux.co.jp>
Date: Tue Nov 16 17:26:11 2010 +0900
x3130/upstream: support aer
add aer support.
Signed-off-by: Isaku Yamahata <yamahata at valinux.co.jp>
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
commit 61620c2fff7dda789dbba513c18f534c0062062b
Author: Isaku Yamahata <yamahata at valinux.co.jp>
Date: Tue Nov 16 17:26:10 2010 +0900
ioh3420: support aer
Add aer support.
Signed-off-by: Isaku Yamahata <yamahata at valinux.co.jp>
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
commit d33d9156fdffb87c99564c9630023da52c66f37a
Author: Michael S. Tsirkin <mst at redhat.com>
Date: Wed Nov 17 15:45:39 2010 +0200
pcie_aer: complete unwinding recursion
Open-code functions created in the previous patch,
to make code more compact and clear.
Detcted and documented what looks like a bug in code
that becomes apparent from this refactoring.
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
commit 247c97f3f5ab0dae60778a2dea438bfed5c69e68
Author: Michael S. Tsirkin <mst at redhat.com>
Date: Wed Nov 17 15:02:26 2010 +0200
pcie_aer: get rid of recursion
Added some TODOs: they are trivial but omitted here
to make the patch logic as transparent as possible.
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
commit 34e65944c0351fabcd82aa8c85018980c7e87bff
Author: Isaku Yamahata <yamahata at valinux.co.jp>
Date: Tue Nov 16 17:26:09 2010 +0900
pcie/aer: helper functions for pcie aer capability
This patch implements helper functions for pcie aer capability
which will be used later.
Signed-off-by: Isaku Yamahata <yamahata at valinux.co.jp>
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
commit 1a1ea6f093eb8cf7c01788bc3708ba7003815563
Author: Isaku Yamahata <yamahata at valinux.co.jp>
Date: Tue Nov 16 17:26:08 2010 +0900
pcie_regs.h: more constants
Add constants for PCI AER log.
Signed-off-by: Isaku Yamahata <yamahata at valinux.co.jp>
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
commit 89d437df5e68e8b289e501dde570917677fd6dfc
Author: Isaku Yamahata <yamahata at valinux.co.jp>
Date: Tue Nov 16 17:26:07 2010 +0900
pci: add W1C bits to pci status register
This patch adds W1C bit support in the initialization/reset of pci
status registers.
Signed-off-by: Isaku Yamahata <yamahata at valinux.co.jp>
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
commit a6f9dd02f75685934ca52f038b6fcb38b661c283
Author: Luiz Capitulino <lcapitulino at redhat.com>
Date: Wed Nov 10 15:59:57 2010 -0200
Makefile: Fix check dependency breakage
Commit b152aa84d52882bb1846485a89baf13aa07c86bc broke the unit-tests
build, fix it.
Signed-off-by: Luiz Capitulino <lcapitulino at redhat.com>
commit 11217a757e7dda66fd2e78b10ea0cd8d6b290e42
Author: Luiz Capitulino <lcapitulino at redhat.com>
Date: Thu Oct 28 13:28:37 2010 -0200
QMP/qmp-shell: Introduce HMP mode
In which qmp-shell will exclusively use the HMP passthrough feature,
this is useful for testing.
Example:
# ./qmp-shell -H qmp-sock
Welcome to the HMP shell!
Connected to QEMU 0.13.50
(QEMU) info network
VLAN 0 devices:
user.0: net=10.0.2.0, restricted=n
e1000.0: model=e1000,macaddr=52:54:00:12:34:56
Devices not on any VLAN:
(QEMU)
Signed-off-by: Luiz Capitulino <lcapitulino at redhat.com>
commit 0268d97c51207f35a5a01239ad92ef2c35dcd5ba
Author: Luiz Capitulino <lcapitulino at redhat.com>
Date: Fri Oct 22 10:08:02 2010 -0200
QMP: Introduce Human Monitor passthrough command
This command allows QMP clients to execute HMP commands.
Please, check the documentation added to the qmp-commands.hx file
for additional details about the interface and its limitations.
Signed-off-by: Luiz Capitulino <lcapitulino at redhat.com>
commit 999bd67c879cbd8bf0fe2b4ff0fb308a9a48ec72
Author: Luiz Capitulino <lcapitulino at redhat.com>
Date: Fri Oct 22 16:09:05 2010 -0200
qemu-char: Introduce Memory driver
This driver handles in-memory chardev operations. That's, all writes
to this driver are stored in an internal buffer and it doesn't talk
to the external world in any way.
Right now it's very simple: it supports only writes. But it can be
easily extended to support more operations.
This is going to be used by the monitor's "HMP passthrough via QMP"
feature, which needs to run monitor handlers without a backing
device.
Signed-off-by: Luiz Capitulino <lcapitulino at redhat.com>
commit 4cdbc094ca3865696c1456f1586818766bf9aae6
Author: Luiz Capitulino <lcapitulino at redhat.com>
Date: Wed Oct 27 18:03:01 2010 -0200
QMP: Drop vm-info example script
It's broken and not really useful, let's just drop it.
Signed-off-by: Luiz Capitulino <lcapitulino at redhat.com>
commit 9bed0d0d1c5667a2e1124c8e44d31ac254ca2efb
Author: Luiz Capitulino <lcapitulino at redhat.com>
Date: Wed Oct 27 17:57:51 2010 -0200
QMP: Revamp the qmp-shell script
This commit updates the qmp-shell script to use the new interface
introduced by the last commit.
Additionally, the following fixes/features are also introduced:
o TCP sockets support
o Update/add documentation
o Simple command-line completion
o Fix a number of unhandled errors
Signed-off-by: Luiz Capitulino <lcapitulino at redhat.com>
commit 1d00a07de980ecf643c7d7699dfc48e94bec15ae
Author: Luiz Capitulino <lcapitulino at redhat.com>
Date: Wed Oct 27 17:43:34 2010 -0200
QMP: Revamp the Python class example
This commit simplifies and fixes a number of problems in the Python
QEMUMonitorProtocol example class.
It's almost a rewrite and it DOES BREAK the qmp-shell script (which
is going to be fixed in the next commit).
However, I'm not going to split this in different commits because it
could get up to 10 commits, it's really not worth it for a simple
demo class.
Highlights:
o TCP sockets support
o QMP events support
o Add documentation
o Fix a number of unhandled errors
o Simplify methods that send commands to the Monitor
Signed-off-by: Luiz Capitulino <lcapitulino at redhat.com>
commit e927d48722fdcba50f82d653c5a1927752483054
Author: Michael S. Tsirkin <mst at redhat.com>
Date: Fri Nov 12 16:21:35 2010 +0900
pci: allow hotplug removal of cold-plugged devices
This patch fixes hot unplug of cold plugged devices
(those present at system start), which got broken by
5beb8ad503c88a76f2b8106c3b74b4ce485a60e1 .
Signed-off-by: Isaku Yamahata <yamahata at valinux.co.jp>
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
Acked-by: Cam Macdonell <cam at cs.ualberta.ca>
Tested-by: Cam Macdonell <cam at cs.ualberta.ca>
Reported-by: Cam Macdonell <cam at cs.ualberta.ca>.
commit 7f5feab4dda39b39dce24113313587587aa2d0ab
Author: Alex Williamson <alex.williamson at redhat.com>
Date: Mon Oct 4 15:53:11 2010 -0600
PCI: Bus number from the bridge, not the device
pcibus_dev_print() was erroneously retrieving the device bus
number from the secondary bus number offset of the device
instead of the bridge above the device. This ends of landing
in the 2nd byte of the 3rd BAR for devices, which thankfully
is usually zero.
Note: pcibus_get_dev_path() copied this code,
inheriting the same bug. pcibus_get_dev_path() is used for
ramblock naming, so changing it can effect migration. However,
I've only seen this byte be non-zero for an assigned device,
which can't migrate anyway, so hopefully we won't run into
any issues.
This patch does not touch pcibus_get_dev_path, as
bus number is guest assigned for nested buses,
so using it for migration is broken anyway.
Fix it properly later.
Signed-off-by: Alex Williamson <alex.williamson at redhat.com>
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
commit e685b4eb649cbddd26f203b611eabeb714648f4d
Author: Alex Williamson <alex.williamson at redhat.com>
Date: Fri Nov 5 14:52:08 2010 -0600
e1000: Fix TCP checksum overflow with TSO
When adding the length to the pseudo header, we're not properly
accounting for overflow.
From: Mark Wu <dwu at redhat.com>
Signed-off-by: Alex Williamson <alex.williamson at redhat.com>
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
commit a5fd2c345f7a616e48e7f2be8b3060d23252180c
Author: Michael S. Tsirkin <mst at redhat.com>
Date: Sun Oct 31 19:06:47 2010 +0200
tap: make set_offload a nop after netdev cleanup
virtio-net expects set_offload to succeed after
peer cleanup.
Since we don't have an open fd anymore, make it so.
Fixes warning about the failure of offload setting.
Reported-by: Jason Wang <jasowang at redhat.com>
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
commit 54cdaa1bad3885448ef39faad93d40be3b223519
Author: Michael S. Tsirkin <mst at redhat.com>
Date: Wed Oct 27 20:03:43 2010 +0200
tap: clear vhost_net backend on cleanup
Frontends calling tap_get_vhost_net get an invalid pointer after the
peer backend has been deleted. Jason Wang <jasowang at redhat.com> reports
this leading to a crash in ack_features when we remove the vhost-net
bakend of a virtio nic.
The fix is simply to clear the backend pointer.
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
More information about the Spice-commits
mailing list