[Qemu-devel] [PATCH 07/13] blockdev: Put space after comma in error message

2011-06-24 Thread Stefan Hajnoczi
From: Markus Armbruster Signed-off-by: Markus Armbruster Signed-off-by: Stefan Hajnoczi --- blockdev.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/blockdev.c b/blockdev.c index 1502575..7d579d6 100644 --- a/blockdev.c +++ b/blockdev.c @@ -293,7 +293,7 @@ DriveInfo

[Qemu-devel] [PULL 00/13] Trivial patches for June 16 to June 24 2011

2011-06-24 Thread Stefan Hajnoczi
(I currently do not have access to my email address.) The following changes since commit 744d3644181ddb16ef5944a0f9217e46961c8c84: coreaudio: Fix OSStatus format specifier (2011-06-23 18:56:58 +0400) are available in the git repository at: ssh://repo.or.cz/srv/git/qemu/stefanha.git trivial-

Re: [Qemu-devel] [PATCH] qemu-kvm: fix pulseaudio detection in configure

2011-06-24 Thread Stefan Hajnoczi
On Fri, Jun 24, 2011 at 2:31 PM, Marc-Antoine Perennou wrote: > On 10 June 2011 09:14, Markus Armbruster wrote: >> Peter Maydell writes: >> >>> On 9 June 2011 18:44, Andreas Färber wrote: Am 09.06.2011 um 17:52 schrieb Marc-Antoine Perennou: > Manually including stddef.h or replacing N

[Qemu-devel] [PATCH 10/13] Do not include compatfd for WIN32

2011-06-24 Thread Stefan Hajnoczi
From: Jan Kiszka sigset_t, used by that header, is not available in mingw32 environments. Signed-off-by: Jan Kiszka Signed-off-by: Stefan Hajnoczi --- cpus.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/cpus.c b/cpus.c index 0699f37..ded2100 100644 --- a/cpus.c +

[Qemu-devel] [PATCH v2 2/2] xen: add vkbd support for PV on HVM guests

2011-06-24 Thread stefano.stabellini
From: Stefano Stabellini Register the vkbd backend even when running as device emulator for HVM guests: it is useful because it doesn't need a frequent timer like usb. Check whether the XenInput DisplayState has been set in the initialise state, rather than the input state. In case the DisplaySt

[Qemu-devel] [PATCH 03/13] sheepdog: qemu_bh_new() can't return null pointer, drop check

2011-06-24 Thread Stefan Hajnoczi
From: Markus Armbruster Signed-off-by: Markus Armbruster Signed-off-by: Stefan Hajnoczi --- block/sheepdog.c |6 -- 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/block/sheepdog.c b/block/sheepdog.c index 0392ca8..2180299 100644 --- a/block/sheepdog.c +++ b/block/sheepd

[Qemu-devel] [PATCH 02/13] Align dummy display to fixed-size active console

2011-06-24 Thread Stefan Hajnoczi
From: Jan Kiszka This fixes e.g. '-vga none -monitor vc:120Cx50C'. Signed-off-by: Jan Kiszka Signed-off-by: Stefan Hajnoczi --- console.c |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/console.c b/console.c index 9c6addf..acd8ca1 100644 --- a/console.c +++ b/

Re: [Qemu-devel] [PATCH] qemu_ram_ptr_length: take ram_addr_t as arguments

2011-06-24 Thread Peter Maydell
On 24 June 2011 12:08, wrote: > From: Stefano Stabellini > > qemu_ram_ptr_length should take ram_addr_t as argument rather than > target_phys_addr_t because is doing comparisons with RAMBlock addresses. > > cpu_physical_memory_map should create a ram_addr_t address to pass to > qemu_ram_ptr_leng

Re: [Qemu-devel] [PATCH v4 2/2] Add support for Zipit Z2 machine

2011-06-24 Thread Vasily Khoruzhick
On Friday 24 June 2011 17:45:06 Peter Maydell wrote: > On 17 June 2011 11:04, Vasily Khoruzhick wrote: > > Zipit Z2 is small PXA270 based handheld. > > > > Signed-off-by: Vasily Khoruzhick > > These patches are affected by the bug in current qemu master > which breaks cpu_physical_memory_map()

[Qemu-devel] [PATCH 04/13] Strip trailing '\n' from error_report()'s first argument

2011-06-24 Thread Stefan Hajnoczi
From: Markus Armbruster error_report() prepends location, and appends a newline. The message constructed from the arguments should not contain a newline. Fix the obvious offenders. Signed-off-by: Markus Armbruster Signed-off-by: Stefan Hajnoczi --- block-migration.c |2 +- block/q

Re: [Qemu-devel] [PATCH v4 2/2] Add support for Zipit Z2 machine

2011-06-24 Thread Peter Maydell
On 24 June 2011 18:06, Vasily Khoruzhick wrote: > On Friday 24 June 2011 17:45:06 Peter Maydell wrote: >> Have you tried vmload/vmsave, by the way? (I don't know if all the >> devices the pxa2xx uses have save/load support implemented, it >> would be interesting to check if you haven't already.) >

Re: [Qemu-devel] Actual TB code doesn't look like what was intended (TCG issue)?

2011-06-24 Thread Max Filippov
> Here are my rules of thumb for generating code where the code > generated might change based on some bit of CPU state: > > When you are generating code, if the code you generate will > change based on the contents of something in the CPUState struct, > then the bit of CPUState you are looking at

Re: [Qemu-devel] [PATCH 1/2] libcacard: fix soft=... parsing in vcard_emul_options

2011-06-24 Thread Alon Levy
On Fri, Jun 24, 2011 at 04:37:39PM +0200, Christophe Fergeau wrote: > The previous parser had copy and paste errors when computing > vname_length and type_params_length, "name" was used instead > of respectively vname and type_params. This led to length that could > be bigger than the input string,

[Qemu-devel] [PATCH 01/13] configure: Don't create symlinks to nonexistent targets

2011-06-24 Thread Stefan Hajnoczi
From: Peter Maydell When we create the symlinks to source tree files, don't create them if the file is not actually present in the source tree; this will happen if the file is in a git submodule that wasn't checked out. This also avoids the odd effect where an in-source-tree configure will end u

[Qemu-devel] [PATCH 05/13] qemu-img: Don't prepend qemu-img to error messages twice.

2011-06-24 Thread Stefan Hajnoczi
From: Markus Armbruster error_report() prepends the location already. Example: $ qemu-img convert -6 qemu-img: qemu-img: option -6 is deprecated, please use '-o compat6' instead! Signed-off-by: Markus Armbruster Signed-off-by: Stefan Hajnoczi --- qemu-img.c |8 1 files changed,

[Qemu-devel] [PATCH 06/13] Spell "unkown" correctly in error_report() arguments

2011-06-24 Thread Stefan Hajnoczi
From: Markus Armbruster Signed-off-by: Markus Armbruster Signed-off-by: Stefan Hajnoczi --- hw/lm32_sys.c |2 +- hw/lm32_timer.c|4 ++-- hw/lm32_uart.c |4 ++-- hw/milkymist-ac97.c|4 ++-- hw/milkymist-memcard.c |4 ++-- hw/milkymist-sysctl.c |

[Qemu-devel] [PATCH 08/13] MAINTAINERS: Fix typo in email address

2011-06-24 Thread Stefan Hajnoczi
From: Peter Maydell Fix a typo in one of the copies of Aurelien Jarno's email address. Signed-off-by: Peter Maydell Signed-off-by: Stefan Hajnoczi --- MAINTAINERS |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 35d4496..6115e4e 100644

[Qemu-devel] [PATCH 09/13] Fix comment typos in hw/armv7m.c

2011-06-24 Thread Stefan Hajnoczi
From: Matthew Fernandez Fix a couple of typos in comments. Signed-off-by: Matthew Fernandez Acked-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- hw/armv7m.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/armv7m.c b/hw/armv7m.c index 72d010a..83f3393 100644

[Qemu-devel] [PATCH 11/13] w32: Remove redundant definitions of PRI*64

2011-06-24 Thread Stefan Hajnoczi
From: Stefan Weil The PRI*64 macros are defined in MinGW's inttypes.h since 2002, so they are not needed in qemu-common.h (which includes inttypes.h). Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- qemu-common.h |5 - 1 files changed, 0 insertions(+), 5 deletions(-) di

[Qemu-devel] [PATCH 12/13] exec: last_first_tb was only used in !ONLY_USER case

2011-06-24 Thread Stefan Hajnoczi
From: Juan Quintela Once there, use a better variable name. Signed-off-by: Juan Quintela Reviewed-by: Peter Maydell Signed-off-by: Stefan Hajnoczi --- exec.c | 10 +++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/exec.c b/exec.c index b03b5be..7236281 100644 --- a/

[Qemu-devel] [PATCH 13/13] qemu-kvm: fix pulseaudio detection in configure

2011-06-24 Thread Stefan Hajnoczi
From: Marc-Antoine Perennou pulse/simple.h does not include stdlib.h We cannot use NULL since it may not be defined Use 0 instead Signed-off-by: Marc-Antoine Perennou Reviewed-by: Peter Maydell Signed-off-by: Stefan Hajnoczi --- configure |2 +- 1 files changed, 1 insertions(+), 1 deleti

[Qemu-devel] [PATCH 0/8] Alpha system emulation, v6

2011-06-24 Thread Richard Henderson
Changes v5->v6 * Rebase against master, which now includes most of the target-alpha/ changes from v5. * VGA now works, with the PALcode initializing text mode. There are still problems with interrupts getting lost, somehow. It doesn't seem to happen with the ISA or clock devices, but onl

[Qemu-devel] RFC/PULL: usb: add support for companion controllers

2011-06-24 Thread Hans de Goede
Hi Gerd et all, These patches add support for adding an emulated uhci or ohci companion controller to our emulated ehci controller. Usage examples: -device usb-ehci,addr=0b.1,multifunction=on,id=ehci0 -device pci-ohci,addr=0b.0,multifunction=on,masterbus=ehci0.0,num-ports=4 -device usb-ehci,addr

[Qemu-devel] [PATCH 03/11] usb: Replace device_destroy bus op with a child_detach port op

2011-06-24 Thread Hans de Goede
Note this fixes 2 things in one go, first of all the device_destroy bus op should be a device_detach bus op, as pending async packets from the device should be cancelled on detach not on destroy. Secondly having this as a bus op won't work with companion controllers, since then there will be 1 bus

[Qemu-devel] [PATCH 1/8] Export the unassigned_mem read/write functions.

2011-06-24 Thread Richard Henderson
Signed-off-by: Richard Henderson --- cpu-common.h |7 +++ exec.c | 12 ++-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/cpu-common.h b/cpu-common.h index b027e43..0654d95 100644 --- a/cpu-common.h +++ b/cpu-common.h @@ -56,6 +56,13 @@ static inline void

[Qemu-devel] [PATCH 04/11] usb-ehci: drop unused num-ports state member

2011-06-24 Thread Hans de Goede
Signed-off-by: Hans de Goede --- hw/usb-ehci.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/hw/usb-ehci.c b/hw/usb-ehci.c index f42648c..158e147 100644 --- a/hw/usb-ehci.c +++ b/hw/usb-ehci.c @@ -373,7 +373,6 @@ struct EHCIState { qemu_irq irq; target_phys_ad

[Qemu-devel] [PATCH 01/11] usb: Add a register_companion USB bus op.

2011-06-24 Thread Hans de Goede
This is a preparation patch for adding support for USB companion controllers. Signed-off-by: Hans de Goede --- hw/usb-bus.c | 25 + hw/usb.h |4 2 files changed, 29 insertions(+), 0 deletions(-) diff --git a/hw/usb-bus.c b/hw/usb-bus.c index 2abce12..052fa

[Qemu-devel] [PATCH 5/8] target-alpha: Implement WAIT IPR.

2011-06-24 Thread Richard Henderson
--- target-alpha/translate.c | 31 +-- 1 files changed, 21 insertions(+), 10 deletions(-) diff --git a/target-alpha/translate.c b/target-alpha/translate.c index 936760c..e13ac30 100644 --- a/target-alpha/translate.c +++ b/target-alpha/translate.c @@ -1618,9 +1618,10

[Qemu-devel] [PATCH 07/11] usb: assert on calling usb_attach(port, NULL) on a port without a dev

2011-06-24 Thread Hans de Goede
with the "usb-ehci: cleanup port reset handling" patch in place no callers are calling usb_attach(port, NULL) for a port where port->dev is NULL. Doing that makes no sense as that causes the port detach op to get called for a port with nothing attached. Add an assert that port->dev != NULL when de

[Qemu-devel] [PATCH 02/11] usb: Make port wakeup and complete ops take a USBPort instead of a Device

2011-06-24 Thread Hans de Goede
This makes them consistent with the attach and detach ops, and in general it makes sense to make portops take a port as argument. This also makes adding support for a companion controller easier / cleaner. Signed-off-by: Hans de Goede --- hw/usb-ehci.c |2 +- hw/usb-hub.c | 10 +-

[Qemu-devel] [PATCH 4/8] target-alpha: Add CLIPPER emulation.

2011-06-24 Thread Richard Henderson
This is a DP264 variant, SMP capable, no unusual hardware present. The emulation does not currently include any PCI IOMMU code. Hopefully the generic support for that can be merged to HEAD soon. Signed-off-by: Richard Henderson --- Makefile.target |1 + default-configs/alp

[Qemu-devel] [PATCH 08/11] usb-ehci: Fix handling of PED and PEDC port status bits

2011-06-24 Thread Hans de Goede
The PED bit should only be set for highspeed devices and the PEDC bit should not be set on "normal" PED bit changes, only on io errors. Signed-off-by: Hans de Goede --- hw/usb-ehci.c | 24 +++- 1 files changed, 11 insertions(+), 13 deletions(-) diff --git a/hw/usb-ehci.c b

[Qemu-devel] [PATCH 05/11] usb-ehci: Connect Status bit is read only, don't allow changing it by the guest

2011-06-24 Thread Hans de Goede
Signed-off-by: Hans de Goede --- hw/usb-ehci.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/usb-ehci.c b/hw/usb-ehci.c index 158e147..0b1cdaf 100644 --- a/hw/usb-ehci.c +++ b/hw/usb-ehci.c @@ -103,10 +103,10 @@ #define PORTSC_BEGIN PORTSC #define PORTSC

[Qemu-devel] [PATCH 3/8] target-alpha: Add custom PALcode image for CLIPPER emulation.

2011-06-24 Thread Richard Henderson
Signed-off-by: Richard Henderson --- .gitmodules |3 +++ Makefile|3 ++- configure |8 +++- pc-bios/README |3 +++ pc-bios/palcode-clipper | Bin 0 -> 185703 bytes roms/qemu-palcode |1 + 6 files changed, 16 inserti

[Qemu-devel] [PATCH 11/11] usb-ohci: Add support for being a companion controller

2011-06-24 Thread Hans de Goede
To use as a companion controller, use pci-ohci as device and set the masterbus and num-ports properties, ie: -device usb-ehci,addr=0b.1,multifunction=on,id=ehci0 -device pci-ohci,addr=0b.0,multifunction=on,masterbus=ehci0.0,num-ports=4 Signed-off-by: Hans de Goede --- hw/usb-ohci.c | 59 +

[Qemu-devel] [PATCH 2/8] pci: Export pci_to_cpu_addr.

2011-06-24 Thread Richard Henderson
This is, more or less, the read accessor to pci_bus_set_mem_base as a write accessor. It will be needed for implementing sparse memory spaces for Alpha. Signed-off-by: Richard Henderson --- hw/pci.c |3 +-- hw/pci.h |1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw

[Qemu-devel] [PATCH 6/8] target-alpha: Implement HALT IPR.

2011-06-24 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-alpha/helper.h|1 + target-alpha/op_helper.c | 10 ++ target-alpha/translate.c |5 + 3 files changed, 16 insertions(+), 0 deletions(-) diff --git a/target-alpha/helper.h b/target-alpha/helper.h index 2dec57e..c352c24 100644 --

[Qemu-devel] [PATCH 7/8] target-alpha: Add high-resolution access to wall clock and an alarm.

2011-06-24 Thread Richard Henderson
The alarm is a fully general one-shot time comparator, which will be usable under Linux as a hrtimer source. It's much more flexible than the RTC source available on real hardware. The wall clock allows the guest access to the host timekeeping. Much like the KVM wall clock source for other guest

[Qemu-devel] [PATCH 8/8] vga: Fix type of lfb/map_addr/end.

2011-06-24 Thread Richard Henderson
These addresses have been passed through pci_to_cpu_addr, and thus need to be full target_phys_addr_t. Signed-off-by: Richard Henderson --- hw/vga_int.h | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/vga_int.h b/hw/vga_int.h index d2811bd..eee91a8 100644 ---

Re: [Qemu-devel] [BREAKAGE] KVM pulls break MinGW builds

2011-06-24 Thread Jonathan A. Kollasch
On Thu, Jun 23, 2011 at 08:41:15AM +0800, Roy Tam wrote: > The pulls makes KVM enabled by default, which is not available in > MinGW(Win32) environment. Even through I put --disable-kvm switch in > ./configure, I still can't get QEMU compiled: > Similar issues on NetBSD. Jonathan Kollasc

[Qemu-devel] [PATCH 06/11] usb-ehci: cleanup port reset handling

2011-06-24 Thread Hans de Goede
Doing a usb_attach when dev is NULL will just result in the port detach op getting called even though nothing was connected in the first place. Signed-off-by: Hans de Goede --- hw/usb-ehci.c |7 +-- 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/hw/usb-ehci.c b/hw/usb-ehc

[Qemu-devel] [PATCH 09/11] usb-ehci: Add support for registering companion controllers

2011-06-24 Thread Hans de Goede
Signed-off-by: Hans de Goede --- hw/usb-ehci.c | 174 +++-- 1 files changed, 144 insertions(+), 30 deletions(-) diff --git a/hw/usb-ehci.c b/hw/usb-ehci.c index 0e8b3d1..ae39940 100644 --- a/hw/usb-ehci.c +++ b/hw/usb-ehci.c @@ -20,9 +20,6 @@

[Qemu-devel] [PATCH 10/11] usb-uhci: Add support for being a companion controller

2011-06-24 Thread Hans de Goede
To use as a companion controller set the masterbus property. Signed-off-by: Hans de Goede --- hw/usb-uhci.c | 48 ++-- 1 files changed, 42 insertions(+), 6 deletions(-) diff --git a/hw/usb-uhci.c b/hw/usb-uhci.c index b081b45..a7ab4a1 100644 --- a/h

Re: [Qemu-devel] [PATCH 08/11] usb-ehci: Fix handling of PED and PEDC port status bits

2011-06-24 Thread Brad Hards
5/11 does this: -#define PORTSC_RO_MASK 0x007021c5 +#define PORTSC_RO_MASK 0x007021c4 before 8/11 does this: > -#define PORTSC_RO_MASK 0x007021c4 > +#define PORTSC_RO_MASK 0x007021c0 You could push those together if there was a v2. I don't think its important though. Eve

[Qemu-devel] QEMU timing requirements

2011-06-24 Thread felix.matenaar@rwth-aachen
Hello, I am currently implementing some heuristics using a patched qemu (i386-softmmu). Two of them take some time for each vm memory access. If I run them both, suddenly qemu segfaults while executing a BBL. Using just one of them never triggers this problem. Are there any known timing issue

Re: [Qemu-devel] QEMU timing requirements

2011-06-24 Thread Mulyadi Santosa
On Sat, Jun 25, 2011 at 09:34, felix.matenaar@rwth-aachen wrote: > Hello, > > I am currently implementing some heuristics using a patched qemu > (i386-softmmu). Two of them take some time for each vm memory access. If I > run them both, suddenly qemu segfaults while executing a BBL. Using just one

[Qemu-devel] GSoC Intro - Intel Itanium (IA64) processor emulation

2011-06-24 Thread Prashant Vaibhav
Hello! My name is Prashant Vaibhav and I am working this summer on a Google Summer of Code project to implement software emulation of the Intel Itanium (IA64) architecture. The project is being mentored by Alexander Graf. I am a student studying at Jacobs University in Germany (staying in India fo

Re: [Qemu-devel] [PATCH 08/11] usb-ehci: Fix handling of PED and PEDC port status bits

2011-06-24 Thread Hans de Goede
Hi, On 06/25/2011 02:15 AM, Brad Hards wrote: 5/11 does this: -#define PORTSC_RO_MASK 0x007021c5 +#define PORTSC_RO_MASK 0x007021c4 before 8/11 does this: -#define PORTSC_RO_MASK 0x007021c4 +#define PORTSC_RO_MASK 0x007021c0 You could push those together if there was

<    1   2