[Qemu-devel] [RFC PATCH 7/7] xilinx_zynq: machine model first revision

2012-01-23 Thread Peter A. G. Crosthwaite
Xilinx zynq-7000 machine model. Also includes device model for the zynq-specific system level control register (SLCR) module. Signed-off-by: Peter A. G. Crosthwaite --- Makefile.target |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/Makefile.target b/Makefile.target inde

[Qemu-devel] [PATCH 2/2] ./configure: add link check for nss-smartcard

2012-01-23 Thread Sergei Trofimovich
From: Sergei Trofimovich Current './configure --static && make' fails for me: LINK qemu-nbd /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lssl3 /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot fin

[Qemu-devel] [RFC PATCH 3/7] cadence_wdt: first revision

2012-01-23 Thread Peter A. G. Crosthwaite
Device model for cadence watchdog timer (WDT) Signed-off-by: Peter A. G. Crosthwaite --- Makefile.target |1 + hw/cadence_wdt.c | 260 ++ 2 files changed, 261 insertions(+), 0 deletions(-) create mode 100644 hw/cadence_wdt.c diff --git

[Qemu-devel] [PATCH 7/7] xilinx_zynq: machine model first revision

2012-01-23 Thread Peter A. G. Crosthwaite
Xilinx zynq-7000 machine model. Also includes device model for the zynq-specific system level control register (SLCR) module. Signed-off-by: Peter A. G. Crosthwaite --- Makefile.target |1 + hw/xilinx_zynq.c | 192 ++ hw/zynq_arm_sysctl.c | 546

Re: [Qemu-devel] [RFC PATCH 7/7] xilinx_zynq: machine model first revision

2012-01-23 Thread Peter Crosthwaite
Regenerated and resent. Regards, Peter On Mon, Jan 23, 2012 at 6:00 PM, Michal Simek wrote: > Peter A. G. Crosthwaite wrote: > >> Xilinx zynq-7000 machine model. Also includes device model for the >> zynq-specific >> system level control register (SLCR) module. >> >> Signed-off-by: Peter A. G.

[Qemu-devel] [PATCH 1/2] ./configure: request pkg-config to provide private libs when static linking

2012-01-23 Thread Sergei Trofimovich
From: Sergei Trofimovich Signed-off-by: Sergei Trofimovich --- configure |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 467e87b..f3dcfba 100755 --- a/configure +++ b/configure @@ -553,6 +553,7 @@ for opt do --static) static="yes"

[Qemu-devel] [RFC PATCH 4/7] cadence_gem: first revision

2012-01-23 Thread Peter A. G. Crosthwaite
Device mode for cadence gem ethernet controller. Signed-off-by: Peter A. G. Crosthwaite --- Makefile.target |1 + hw/cadence_gem.c | 1441 ++ 2 files changed, 1442 insertions(+), 0 deletions(-) create mode 100644 hw/cadence_gem.c diff --

[Qemu-devel] [PATCH v3 0/9] Misc fixes for floppy emulation

2012-01-23 Thread Hervé Poussineau
Here are misc fixes done by VirtualBox team. With these patches, floppy emulation is now good enough to run Xenix. Changes v2->v3: - removed patch changing controller stepping to 0 - fixed out of bound access after bad seek command Changes v1->v2: - updated commit messages - added missing 'break'

Re: [Qemu-devel] [PATCH v2 07/10] block: add a transfer rate for floppy types

2012-01-23 Thread Kevin Wolf
Am 21.01.2012 20:02, schrieb Blue Swirl: > On Mon, Jan 16, 2012 at 10:18, Kevin Wolf wrote: >> Am 15.01.2012 08:51, schrieb Hervé Poussineau: >>> Floppies must be read at a specific transfer rate, depending of its own >>> format. >>> Update floppy description table to include required transfer ra

[Qemu-devel] [PATCH v3 7/9] fdc: check if media rate is correct before doing any transfer

2012-01-23 Thread Hervé Poussineau
The programmed rate has to be the same as the required rate for the floppy format ; if that's not the case, the transfer should abort. Revalidate floppy after migration, so media_rate field doesn't have to be saved/restored. Signed-off-by: Hervé Poussineau --- hw/fdc.c | 25 ++

Re: [Qemu-devel] [PATCH 2/2] ./configure: add link check for nss-smartcard

2012-01-23 Thread Alon Levy
On Mon, Jan 23, 2012 at 10:41:38AM +0300, Sergei Trofimovich wrote: > From: Sergei Trofimovich > Looks good to me. > Current './configure --static && make' fails for me: > > LINK qemu-nbd > > /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: > cannot fin

Re: [Qemu-devel] bad USB tablet update rate on qemu-1.0

2012-01-23 Thread erik . rull
Hi all, I'm really sorry, but the bisectioning does not work for the versions that I want to test. I get a bunch of errors when bisectioning. e.g. continuosly: erik@debian:~/qemu-test/qemu-kvm$ make CCx86_64-softmmu/monitor.o In file included from /home/erik/qemu-test/qemu-kvm/qmp-commands

[Qemu-devel] [PATCH v3 2/9] fdc: set busy bit when starting a command

2012-01-23 Thread Hervé Poussineau
This bit must be active while a command is currently executed. Signed-off-by: Hervé Poussineau --- hw/fdc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/fdc.c b/hw/fdc.c index c1898a6..1b9f303 100644 --- a/hw/fdc.c +++ b/hw/fdc.c @@ -1446,7 +1446,6 @@ static void

[Qemu-devel] [PATCH v3 6/9] block: add a transfer rate for floppy types

2012-01-23 Thread Hervé Poussineau
Floppies must be read at a specific transfer rate, depending of its own format. Update floppy description table to include required transfer rate. Signed-off-by: Hervé Poussineau --- block.c | 74 - block.h | 10 +++- hw/fdc.c

[Qemu-devel] [RFC PATCH 6/7] arm_boot: added initrd address override

2012-01-23 Thread Peter A. G. Crosthwaite
parameterised the initrd load address for arm boot process. Machine models can populate the initrd field with a non-zero address to specifiy that the default value of 0x00d0 should be overridden. Signed-off-by: Peter A. G. Crosthwaite --- hw/arm-misc.h |2 ++ hw/arm_boot.c | 12 +++

[Qemu-devel] [PATCH] rtc: initialize irq even if caller doesn't use rtc_init() function

2012-01-23 Thread Hervé Poussineau
rtc instanciated with -device has now a working irq line Signed-off-by: Hervé Poussineau --- hw/mc146818rtc.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/mc146818rtc.c b/hw/mc146818rtc.c index 657fa10..3067022 100644 --- a/hw/mc146818rtc.c +++ b/hw/mc146818rtc.

[Qemu-devel] [PATCH v3 1/9] fdc: take side count into account

2012-01-23 Thread Hervé Poussineau
Floppies can be simple or double-sided. However, current code was only taking the common case into account (ie 2 sides). Signed-off-by: Hervé Poussineau --- hw/fdc.c | 17 +++-- 1 files changed, 11 insertions(+), 6 deletions(-) diff --git a/hw/fdc.c b/hw/fdc.c index 70aa5c7..c1898

[Qemu-devel] [PATCH v3 5/9] fdc: add CCR (Configuration Control Register) write register

2012-01-23 Thread Hervé Poussineau
DIR and CCR registers share the same address ; DIR is read-only while CCR is write-only Signed-off-by: Hervé Poussineau --- hw/fdc.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/hw/fdc.c b/hw/fdc.c index 4a363bd..4875291 100644 --- a/hw/fdc.c +++

Re: [Qemu-devel] [RFC PATCH 7/7] xilinx_zynq: machine model first revision

2012-01-23 Thread Michal Simek
Peter A. G. Crosthwaite wrote: Xilinx zynq-7000 machine model. Also includes device model for the zynq-specific system level control register (SLCR) module. Signed-off-by: Peter A. G. Crosthwaite --- Makefile.target |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/Makef

[Qemu-devel] [PATCH v3 4/9] fdc: handle read-only floppies (abort early on write commands)

2012-01-23 Thread Hervé Poussineau
A real floppy doesn't attempt to write to read-only media either. Signed-off-by: Hervé Poussineau --- hw/fdc.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/hw/fdc.c b/hw/fdc.c index bedaeca..4a363bd 100644 --- a/hw/fdc.c +++ b/hw/fdc.c @@ -300,6 +300,7 @@ e

[Qemu-devel] [RFC PATCH 5/7] vl.c: added -kerndtb option

2012-01-23 Thread Peter A. G. Crosthwaite
Added linux specific kernel dtb option. This option can be specified to inject an argument device tree blob (dtb) into linux. Signed-off-by: Peter A. G. Crosthwaite --- qemu-options.hx |3 +++ vl.c|4 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/qemu-op

[Qemu-devel] [PATCH v3 9/9] fdc: DIR (Digital Input Register) should return status of current drive...

2012-01-23 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/fdc.c | 10 +++--- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/hw/fdc.c b/hw/fdc.c index 3fa7704..79a7190 100644 --- a/hw/fdc.c +++ b/hw/fdc.c @@ -215,6 +215,7 @@ static void fdctrl_reset_fifo(FDCtrl *fdctrl); static int fdctrl_tra

[Qemu-devel] [PATCH v3 8/9] fdc: fix seek command, which shouldn't check tracks

2012-01-23 Thread Hervé Poussineau
The seek command just sends step pulses to the drive and doesn't care if there is a medium inserted of if it is banging the head against the drive. Signed-off-by: Hervé Poussineau --- hw/fdc.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/hw/fdc.c b/hw/fdc.c in

[Qemu-devel] [PATCH v3 3/9] fdc: most control commands do not generate interrupts

2012-01-23 Thread Hervé Poussineau
In fact, only three control commands generate an interrupt: read_id, recalibrate and seek Signed-off-by: Hervé Poussineau --- hw/fdc.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/fdc.c b/hw/fdc.c index 1b9f303..bedaeca 100644 --- a/hw/fdc.c +++ b/hw/fdc

[Qemu-devel] [RFC PATCH 2/7] cadence ttc: first revision

2012-01-23 Thread Peter A. G. Crosthwaite
Device model for cadence triple timer counter (TTC) Signed-off-by: Peter A. G. Crosthwaite --- Makefile.target |1 + hw/cadence_ttc.c | 545 ++ 2 files changed, 546 insertions(+), 0 deletions(-) create mode 100644 hw/cadence_ttc.c diff

[Qemu-devel] [PATCH 0/3] jazz-led: qdev conversion

2012-01-23 Thread Hervé Poussineau
Following patches update jazz-led emulation to current Qemu standards: - use trace framework to report events - convert to qdev Hervé Poussineau (3): jazz-led: use trace framework jazz-led: convert to qdev jazz-led: compile it only twice Makefile.objs|1 + Makef

Re: [Qemu-devel] [PATCH 1/2] ./configure: request pkg-config to provide private libs when static linking

2012-01-23 Thread Peter Maydell
On 23 January 2012 07:41, Sergei Trofimovich wrote: > From: Sergei Trofimovich > > Signed-off-by: Sergei Trofimovich > --- >  configure |    1 + >  1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/configure b/configure > index 467e87b..f3dcfba 100755 > --- a/configure > +++ b/co

[Qemu-devel] [PATCH 1/3] jazz-led: use trace framework

2012-01-23 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/jazz_led.c | 26 +- trace-events |4 2 files changed, 13 insertions(+), 17 deletions(-) diff --git a/hw/jazz_led.c b/hw/jazz_led.c index f8a2182..1af9268 100644 --- a/hw/jazz_led.c +++ b/hw/jazz_led.c @@ -26,17 +26,7 @@

[Qemu-devel] [PATCH 3/3] jazz-led: compile it only twice

2012-01-23 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- Makefile.objs|1 + Makefile.target |1 - default-configs/mips-softmmu.mak |1 + default-configs/mips64-softmmu.mak |1 + default-configs/mips64el-softmmu.mak |1 + default-configs/mipsel-so

[Qemu-devel] [PATCH 2/3] jazz-led: convert to qdev

2012-01-23 Thread Hervé Poussineau
Some simplifications in I/O functions are possible because Jazz LED only registers one byte of I/O. Signed-off-by: Hervé Poussineau --- hw/jazz_led.c | 153 +++ hw/mips.h |3 - hw/mips_jazz.c |2 +- 3 files changed, 65 insertions

Re: [Qemu-devel] [PATCH v4 0/6] save/restore on Xen

2012-01-23 Thread Stefano Stabellini
On Fri, 20 Jan 2012, Jan Kiszka wrote: > On 2012-01-20 18:20, Stefano Stabellini wrote: > > Hi all, > > this is the fourth version of the Xen save/restore patch series. > > We have been discussing this issue for quite a while on #qemu and > > qemu-devel: > > > > > > http://marc.info/?l=qemu-devel

Re: [Qemu-devel] [PATCH] rtc: initialize irq even if caller doesn't use rtc_init() function

2012-01-23 Thread Jan Kiszka
On 2012-01-23 10:18, Hervé Poussineau wrote: > rtc instanciated with -device has now a working irq line That makes no sense. The mc146818rtc is no_user - for a reason. What is the use case you are trying to address? Jan > > Signed-off-by: Hervé Poussineau > --- > hw/mc146818rtc.c |4 ++--

Re: [Qemu-devel] [PATCH] virtio-blk: add virtio_blk_handle_read trace event

2012-01-23 Thread Kevin Wolf
Am 22.12.2011 14:17, schrieb Stefan Hajnoczi: > There already exists a virtio_blk_handle_write trace event as well as > completion events. Add the virtio_blk_handle_read event so it's easy to > trace virtio-blk requests for both read and write operations. > > Signed-off-by: Stefan Hajnoczi Than

Re: [Qemu-devel] [PATCH v2] multiboot: Fix bss segment support

2012-01-23 Thread Kevin Wolf
Am 20.12.2011 19:49, schrieb Göran Weinholt: > Alexander Graf writes: > >> Yes, this patch makes things work again :). Thanks a lot! >> >> The only thing I could nitpick on would be the coding style - checkpatch.pl >> complains :). Could you please resend with braces? >> Justin, Please also queu

Re: [Qemu-devel] [PATCH] block/vdi: Zero unused parts when allocating a new block (fix #919242)

2012-01-23 Thread Kevin Wolf
Am 21.01.2012 13:54, schrieb Stefan Weil: > The new block was filled with zero when it was allocated by g_malloc0, > but when it was reused later and only partially used, data from the > previously allocated block were still present and written to the new > block. > > This caused the problems repo

Re: [Qemu-devel] [PATCH v4 0/6] save/restore on Xen

2012-01-23 Thread Jan Kiszka
On 2012-01-23 11:47, Stefano Stabellini wrote: > On Fri, 20 Jan 2012, Jan Kiszka wrote: >> On 2012-01-20 18:20, Stefano Stabellini wrote: >>> Hi all, >>> this is the fourth version of the Xen save/restore patch series. >>> We have been discussing this issue for quite a while on #qemu and >>> qemu-d

Re: [Qemu-devel] [PATCH v4 0/6] save/restore on Xen

2012-01-23 Thread Stefano Stabellini
On Mon, 23 Jan 2012, Jan Kiszka wrote: > >> Or what is the ordering > >> of init, RAM restore, and initial device reset now? > > > > RAM restore (done by Xen) > > > > physmap rebuild (done by xen_hvm_init in qemu) > > pc_init() > > qemu_system_reset() > > load_vmstate() > > Hmm, are you sure tha

Re: [Qemu-devel] [PATCH] rtc: initialize irq even if caller doesn't use rtc_init() function

2012-01-23 Thread Hervé Poussineau
Jan Kiszka a écrit : On 2012-01-23 10:18, Hervé Poussineau wrote: rtc instanciated with -device has now a working irq line That makes no sense. The mc146818rtc is no_user - for a reason. What is the use case you are trying to address? I wanted to be able to instanciate it with isa_create_s

Re: [Qemu-devel] [PATCH] rtc: initialize irq even if caller doesn't use rtc_init() function

2012-01-23 Thread Jan Kiszka
On 2012-01-23 13:00, Hervé Poussineau wrote: > Jan Kiszka a écrit : >> On 2012-01-23 10:18, Hervé Poussineau wrote: >>> rtc instanciated with -device has now a working irq line >> >> That makes no sense. The mc146818rtc is no_user - for a reason. >> >> What is the use case you are trying to address

Re: [Qemu-devel] [PATCH v4 0/6] save/restore on Xen

2012-01-23 Thread Jan Kiszka
On 2012-01-23 12:59, Stefano Stabellini wrote: > On Mon, 23 Jan 2012, Jan Kiszka wrote: Or what is the ordering of init, RAM restore, and initial device reset now? >>> >>> RAM restore (done by Xen) >>> >>> physmap rebuild (done by xen_hvm_init in qemu) >>> pc_init() >>> qemu_system_reset(

Re: [Qemu-devel] Commit 5632ae46 broke the network on mips.

2012-01-23 Thread Rob Landley
On 01/23/2012 12:34 AM, Stefan Weil wrote: > Hi Rob, > > the patch was applied after v1.0, and there are two commits for > the stable-1.0 branch and the main development branch. > So I think that your git repository and your analysis is correct. > > Where did you get your v1.0 tarball from? Sigh

[Qemu-devel] [PATCH] multiboot: mh_load_end_addr and mh_bss_end_addr may be zero

2012-01-23 Thread Göran Weinholt
There are two special cases in the address fields of the multiboot format. If mh_load_end_addr is zero then the whole image file should be loaded and if mh_bss_end_addr is zero then there is no bss segment. With this change it is again possible to boot kernels where these fields are zero. Signed-o

[Qemu-devel] [PULL] VirtFS update

2012-01-23 Thread Aneesh Kumar K.V
The following changes since commit 8c4ec5c0269bda18bb777a64b2008088d1c632dc: pxa2xx_keypad: fix unbalanced parenthesis. (2012-01-17 02:14:42 +0100) are available in the git repository at: git://github.com/kvaneesh/QEMU.git for-upstream for you to fetch changes up to 0700a73cfe166100cb59e2

Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

2012-01-23 Thread Charles . Tsai-蔡清海-研究發展部
Vadim, Thanks. We will download the code from Yan's repository. -Original Message- From: Vadim Rozenfeld [mailto:vroze...@redhat.com] Sent: Friday, January 20, 2012 8:48 PM To: Charles.Tsai-蔡清海-研究發展部 Cc: Michael Roth; Stefan Hajnoczi; spice-de...@lists.freedesktop.org; Alex Huang-黃必賢-研

[Qemu-devel] [PATCH] e1000: bounds packet size against buffer size

2012-01-23 Thread Anthony Liguori
Otherwise we can write beyond the buffer and corrupt memory. This is tracked as CVE-2012-0029. Signed-off-by: Anthony Liguori --- hw/e1000.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/hw/e1000.c b/hw/e1000.c index a29c944..86c5416 100644 --- a/hw/e1000.c +++ b/hw

Re: [Qemu-devel] [PATCH v2 00/15] SCSI s/g + SCSI migration + virtio-scsi

2012-01-23 Thread Paolo Bonzini
On 01/19/2012 04:53 PM, Paolo Bonzini wrote: I found a problem that a virtio-scsi disk gets offline during mkfs. The scsi disk is of 100G or bigger, and the corresponding image is a freshly created qcow2 image. If the disk is small enough, or not freshly created, the problem doesn't appear. Hi

Re: [Qemu-devel] [RFC] CODING_STYLE: Clarify style for enum and function type names

2012-01-23 Thread Peter Maydell
Since nobody seems to have disagreed, perhaps we should just commit this? -- PMM On 13 January 2012 20:29, Peter Maydell wrote: > Clarify that enum type names and function type names should follow > the CamelCase style used for structured type names. > > Signed-off-by: Peter Maydell > --- > Dur

[Qemu-devel] qemu-ga: add support for Windows

2012-01-23 Thread Michael Roth
These patches apply/work on top of: [PATCH] qemu-ga: Add schema documentation for types [PATCH] qemu-ga: add guest-set-support-level command [PATCH] main-loop: Fix SetEvent() on uninitialized handle on win32 [PATCH] main-loop: For tools, initialize timers as part of qemu_init_main_loop() And can a

[Qemu-devel] [PATCH 2/7] qemu-ga: separate out common commands from posix-specific ones

2012-01-23 Thread Michael Roth
Many of the current RPC implementations are very much POSIX-specific and require complete re-writes for Windows. There are however a small set of core guest agent commands that are common to both, and other commands such as guest-file-* which *may* be portable. So we introduce commands.c for the la

[Qemu-devel] [PATCH 1/7] qemu-ga: move channel/transport functionality into wrapper class

2012-01-23 Thread Michael Roth
This is monstly in preparation for the win32 port, which won't use GIO channels for reasons that will be made clearer later. Here the GAChannel class is just a loose wrapper around GIOChannel calls/callbacks, but we also roll the logic/configuration for handling FDs and also for managing unix socke

[Qemu-devel] [PATCH 4/7] qemu-ga: fixes for win32 build of qemu-ga

2012-01-23 Thread Michael Roth
Various stubs and #ifdefs to compile for Windows using mingw cross-build. Still has 1 linker error due to a dependency on the forthcoming win32 versions of the GAChannel/transport class. Signed-off-by: Michael Roth --- Makefile |2 +- Makefile.objs|9 +++-- configure

[Qemu-devel] [PATCH 6/7] qemu-ga: add Windows service integration

2012-01-23 Thread Michael Roth
This allows qemu-ga to function as a Windows service: - to install the service (will auto-start on boot): qemu-ga --service install - to start the service: net start qemu-ga - to stop the service: net stop qemu-ga - to uninstall service: qemu-ga --service uninstall Origina

[Qemu-devel] [PATCH 3/7] qemu-ga: rename guest-agent-commands.c -> commands-posix.c

2012-01-23 Thread Michael Roth
Signed-off-by: Michael Roth --- Makefile.objs |2 +- qga/commands-posix.c | 528 qga/guest-agent-commands.c | 528 3 files changed, 529 insertions(+), 529 deletions(-) create mode

Re: [Qemu-devel] [PATCH v13 3/6] arm: add secondary cpu boot callbacks to arm_boot.c

2012-01-23 Thread Peter Maydell
On 20 January 2012 20:46, Mark Langsdorf wrote: > Create two functions, write_secondary_boot() and secondary_cpu_reset_hook(), > to allow platforms more control of how secondary CPUs are brought up. The > new functions default to NULL and aren't called unless they are populated > so there are no c

Re: [Qemu-devel] [PATCH] signrom.sh: portability fix

2012-01-23 Thread Jan Kiszka
On 2009-07-17 16:37, Alexander Graf wrote: > > On 17.07.2009, at 15:23, Christoph Egger wrote: > >> >> Hi! >> >> Attached patch makes signrom.sh working on NetBSD. >> The output of the 'od' command leads to a syntax error >> which breaks the build. > > So why replace the $(( ... )) calculation w

Re: [Qemu-devel] [PATCH v13 6/6] arm: SoC model for Calxeda Highbank

2012-01-23 Thread Peter Maydell
On 20 January 2012 20:47, Mark Langsdorf wrote: > +    /* highbank requires a dtb in order to boot, and the dtb will override > +     * the board ID. The following value is ignored, so set it to -1 to be > +     * clear that the value is meaningless. > +     */ > +    highbank_binfo.board_id = 0;

[Qemu-devel] [PATCH 7/7] qemu-ga: add win32 guest-shutdown command

2012-01-23 Thread Michael Roth
Implement guest-shutdown RPC for Windows. Functionally this should be equivalent to the posix implementation. Original patch by Gal Hammer Signed-off-by: Michael Roth --- qga/commands-win32.c | 41 - 1 files changed, 40 insertions(+), 1 deletions(-) d

Re: [Qemu-devel] [PATCH v13 5/6] arm: store the config_base_register during cpu_reset

2012-01-23 Thread Peter Maydell
On 20 January 2012 20:46, Mark Langsdorf wrote: > Long term, the config_base_register will be a QDM parameter. In the > meantime, models that use it need to be able to preserve it across > cpu_reset() calls. > > Signed-off-by: Mark Langsdorf > --- > Changes from v1-v12 >        Skipped > >  targe

Re: [Qemu-devel] [PATCH v4 0/6] save/restore on Xen

2012-01-23 Thread Stefano Stabellini
On Mon, 23 Jan 2012, Jan Kiszka wrote: > On 2012-01-23 12:59, Stefano Stabellini wrote: > > On Mon, 23 Jan 2012, Jan Kiszka wrote: > Or what is the ordering > of init, RAM restore, and initial device reset now? > >>> > >>> RAM restore (done by Xen) > >>> > >>> physmap rebuild (done by xen

[Qemu-devel] [PATCH 5/7] qemu-ga: add initial win32 support

2012-01-23 Thread Michael Roth
This adds a win32 channel implementation that makes qemu-ga functional on Windows using virtio-serial (unix-listen/isa-serial not currently implemented). Unlike with the posix implementation, we do not use GIOChannel for the following reasons: - glib calls stat() on an fd to check whether S_IFCHR

Re: [Qemu-devel] [PATCH] usb-redir: Add the posibility to filter out certain devices from redirecion

2012-01-23 Thread Gerd Hoffmann
On 01/13/12 08:43, Gerd Hoffmann wrote: > On 01/12/12 17:31, Hans de Goede wrote: >> This patch adds the posibility to filter out certain devices from redirecion. >> To use this pass the filter property to -device usb-redir. The filter >> property takes a string consisting of filter rules, the for

Re: [Qemu-devel] [PATCH] usb-ehci: Clear the portstatus powner bit on device disconnect

2012-01-23 Thread Gerd Hoffmann
On 01/13/12 14:28, Hans de Goede wrote: > According to the EHCI spec port ownerhsip should revert to the EHCI controller > on device disconnect. This fixes the problem of a port getting stuck on USB 1 > when using redirection and plugging in a USB 2 device after a USB 1 device > has been redirected

[Qemu-devel] [PATCH 01/25] usb: kill USB_MSG_{ATTACH,DETACH}

2012-01-23 Thread Gerd Hoffmann
The USB subsystem pipes internal attach/detach notifications through usb_handle_packet() with a special magic PID. This indirection is a pretty pointless excercise as it ends up being handled by usb_generic_handle_packet anyway. Remove it. Signed-off-by: Gerd Hoffmann --- hw/usb.c | 18 +

[Qemu-devel] [PATCH 04/25] usb: add usb_find_device()

2012-01-23 Thread Gerd Hoffmann
Add usb_find_device(). This function will check whenever a device with a specific address is connected to the specified port. Usually this will just check state and address of the device hooked up to the port, but in case of a hub it will ask the hub to check all hub ports for a matching device.

[Qemu-devel] [PATCH 10/25] usb-musb: switch to usb_find_device()

2012-01-23 Thread Gerd Hoffmann
Switch over musb to use the new usb_find_device() function for device lookup. Signed-off-by: Gerd Hoffmann --- hw/usb-musb.c |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/hw/usb-musb.c b/hw/usb-musb.c index c2753c9..ecac631 100644 --- a/hw/usb-musb.c +++ b/hw/usb

[Qemu-devel] [PATCH 13/25] usb: fold usb_generic_handle_packet into usb_handle_packet

2012-01-23 Thread Gerd Hoffmann
There is no reason to have a separate usb_generic_handle_packet function any more, fold it into usb_handle_packet(). Also call the do_token_* functions which handle control transfer emulation for control pipe packets only. Signed-off-by: Gerd Hoffmann --- hw/usb.c | 58 +++

[Qemu-devel] [PATCH 08/25] usb-ehci: switch to usb_find_device()

2012-01-23 Thread Gerd Hoffmann
Switch over EHCI to use the new usb_find_device() function for device lookup. Signed-off-by: Gerd Hoffmann --- hw/usb-ehci.c | 69 - 1 files changed, 29 insertions(+), 40 deletions(-) diff --git a/hw/usb-ehci.c b/hw/usb-ehci.c index 7c75

[Qemu-devel] [PATCH 15/25] usb: add USBEndpoint->{nr,pid}

2012-01-23 Thread Gerd Hoffmann
Add a "nr" and "pid" fields to USBEndpoint so you can easily figure the endpoint number and direction of any given endpoint. Signed-off-by: Gerd Hoffmann --- hw/usb.c |5 + hw/usb.h |2 ++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/hw/usb.c b/hw/usb.c index 9f4456

[Qemu-devel] [PATCH 21/25] xhci: add trb type name lookup support.

2012-01-23 Thread Gerd Hoffmann
When logging TRBs add a the type name for more readable debug output. Signed-off-by: Gerd Hoffmann --- hw/usb-xhci.c | 62 +--- 1 files changed, 58 insertions(+), 4 deletions(-) diff --git a/hw/usb-xhci.c b/hw/usb-xhci.c index 99e08e3..3cd53

[Qemu-devel] [PATCH 16/25] usb: Set USBEndpoint in usb_packet_setup().

2012-01-23 Thread Gerd Hoffmann
With the separation of the device lookup (via usb_find_device) and packet processing we can lookup device and endpoint before setting up the usb packet. So we can initialize USBPacket->ep early and keep it valid for the whole lifecycle of the USBPacket. Also the devaddr and devep fields are not n

Re: [Qemu-devel] [PATCH 00/25] *** SUBJECT HERE ***

2012-01-23 Thread Gerd Hoffmann
On 01/23/12 15:54, Gerd Hoffmann wrote: > *** BLURB HERE *** Oops, that wasn't supposed to happen ... This patch series revamps the usb packet workflow to move the whole thing to a event-based workflow. xhci emulation needs this, and we also might be able to use this with the other host adapters

[Qemu-devel] [PATCH 19/25] usb: add USBBusOps->wakeup_endpoint

2012-01-23 Thread Gerd Hoffmann
Add usb bus op which is called whenever a usb endpoint becomes ready, so the host adapter emulation can react on that event. Signed-off-by: Gerd Hoffmann --- hw/usb.c |4 hw/usb.h |1 + 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/hw/usb.c b/hw/usb.c index 381558d.

[Qemu-devel] [PATCH 23/25] xhci: kill port arg from xhci_setup_packet

2012-01-23 Thread Gerd Hoffmann
Unused argument, remove it. Signed-off-by: Gerd Hoffmann --- hw/usb-xhci.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/usb-xhci.c b/hw/usb-xhci.c index 1e8836f..cd88c76 100644 --- a/hw/usb-xhci.c +++ b/hw/usb-xhci.c @@ -1390,7 +1390,7 @@ static int xhci_hle_c

Re: [Qemu-devel] Removing indeterminism in qemu execution

2012-01-23 Thread Lluís Vilanova
batuzovk writes: >> I'm debugging an operating system with QEMU and I have a race condition in >> the OS. The problem is that each time I run QEMU I get this error in a >> different place, so it makes impossible for gdb to debug it. My plan is to >> remove this indeterminism and be able to reprodu

[Qemu-devel] [PATCH 03/25] usb: kill usb_send_msg

2012-01-23 Thread Gerd Hoffmann
No users left. Zap it. Signed-off-by: Gerd Hoffmann --- hw/usb.c | 13 - hw/usb.h |1 - 2 files changed, 0 insertions(+), 14 deletions(-) diff --git a/hw/usb.c b/hw/usb.c index e81c06d..a6eea99 100644 --- a/hw/usb.c +++ b/hw/usb.c @@ -299,19 +299,6 @@ int set_usb_string(uint8

[Qemu-devel] [PATCH 12/25] usb: kill handle_packet callback

2012-01-23 Thread Gerd Hoffmann
All drivers except usb-hub use usb_generic_handle_packet. The only reason the usb hub has its own function is that it used to be called with packets which are intended for downstream devices. With the new, separate device lookup step this doesn't happen any more, so the need for a different handl

[Qemu-devel] [PATCH 00/25] *** SUBJECT HERE ***

2012-01-23 Thread Gerd Hoffmann
*** BLURB HERE *** Gerd Hoffmann (25): usb: kill USB_MSG_{ATTACH,DETACH} usb: kill USB_MSG_RESET usb: kill usb_send_msg usb: add usb_find_device() usb-hub: implement find_device usb: handle dev == NULL in usb_handle_packet() usb-uhci: switch to usb_find_device() usb-ehci: switch to

[Qemu-devel] [PATCH 20/25] xhci: signal low- and fullspeed support

2012-01-23 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/usb-xhci.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/hw/usb-xhci.c b/hw/usb-xhci.c index 15525f4..99e08e3 100644 --- a/hw/usb-xhci.c +++ b/hw/usb-xhci.c @@ -2672,7 +2672,10 @@ static void usb_xhci_init(XHCIState *xhci, DeviceS

[Qemu-devel] [PATCH 14/25] usb: USBPacket: add status, rename owner -> ep

2012-01-23 Thread Gerd Hoffmann
Add enum to track the status of USBPackets, use that instead of the owner pointer to figure whenever a usb packet is currently in flight or not. Add some more packet status sanity checks. Also rename the USBEndpoint pointer from "owner" to "ep". Signed-off-by: Gerd Hoffmann --- hw/usb-ehci.c |

[Qemu-devel] [PATCH 22/25] xhci: stop on errors

2012-01-23 Thread Gerd Hoffmann
When some error happened we'll have to stop processing the endpoint. Signed-off-by: Gerd Hoffmann --- hw/usb-xhci.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/hw/usb-xhci.c b/hw/usb-xhci.c index 3cd5374..1e8836f 100644 --- a/hw/usb-xhci.c +++ b/hw/usb-xhci.c

[Qemu-devel] [PATCH 07/25] usb-uhci: switch to usb_find_device()

2012-01-23 Thread Gerd Hoffmann
Switch over UHCI to use the new usb_find_device() function for device lookup. Signed-off-by: Gerd Hoffmann --- hw/usb-uhci.c | 45 +++-- 1 files changed, 15 insertions(+), 30 deletions(-) diff --git a/hw/usb-uhci.c b/hw/usb-uhci.c index 485dc1d..868ac83

[Qemu-devel] [PATCH 17/25] usb: maintain async packet list per endpoint

2012-01-23 Thread Gerd Hoffmann
Maintain a list of async packets per endpoint. With the current code the list will never receive more than a single item. I think you can guess what the future plan is though ;) Signed-off-by: Gerd Hoffmann --- hw/usb.c | 130 + hw/u

[Qemu-devel] [PATCH 05/25] usb-hub: implement find_device

2012-01-23 Thread Gerd Hoffmann
Implement the find_device callback for the usb hub. It'll loop over all ports, calling usb_find_device for all enabled ports until it finds a matching device. Signed-off-by: Gerd Hoffmann --- hw/usb-hub.c | 21 + 1 files changed, 21 insertions(+), 0 deletions(-) diff --gi

[Qemu-devel] [PATCH 25/25] xhci: handle USB_RET_NAK

2012-01-23 Thread Gerd Hoffmann
Add a field to XHCITransfer to correctly keep track of NAK'ed usb packets. Retry transfers when the endpoint is kicked again. Implement wakeup_endpoint bus op so we can kick the endpoint when needed. With this patch applied the emulated hid devices are working correctly when hooked up to xhci.

[Qemu-devel] [PATCH 24/25] xhci: remote wakeup support

2012-01-23 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/usb-xhci.c | 21 + 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/hw/usb-xhci.c b/hw/usb-xhci.c index cd88c76..a42bb96 100644 --- a/hw/usb-xhci.c +++ b/hw/usb-xhci.c @@ -2696,6 +2696,26 @@ static void xhci_detach(USBPort *

Re: [Qemu-devel] [PATCH v4 0/6] save/restore on Xen

2012-01-23 Thread Jan Kiszka
On 2012-01-23 15:46, Stefano Stabellini wrote: > On Mon, 23 Jan 2012, Jan Kiszka wrote: >> On 2012-01-23 12:59, Stefano Stabellini wrote: >>> On Mon, 23 Jan 2012, Jan Kiszka wrote: >> Or what is the ordering >> of init, RAM restore, and initial device reset now? > > RAM restore (don

[Qemu-devel] [PATCH 09/25] usb-ohci: switch to usb_find_device()

2012-01-23 Thread Gerd Hoffmann
Switch over OHCI to use the new usb_find_device() function for device lookup. Signed-off-by: Gerd Hoffmann --- hw/usb-ohci.c | 73 + 1 files changed, 37 insertions(+), 36 deletions(-) diff --git a/hw/usb-ohci.c b/hw/usb-ohci.c index 77f8

[Qemu-devel] [PATCH 06/25] usb: handle dev == NULL in usb_handle_packet()

2012-01-23 Thread Gerd Hoffmann
Allow passing in a NULL pointer, return USB_RET_NODEV in that case. Removes the burden to to a NULL pointer check from the callers. Signed-off-by: Gerd Hoffmann --- hw/usb.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/hw/usb.c b/hw/usb.c index 5482c92..80afd99 100

Re: [Qemu-devel] [PATCH v4 1/6] vl.c: do not save the RAM state when Xen is enabled

2012-01-23 Thread Anthony Liguori
On 01/20/2012 11:21 AM, Stefano Stabellini wrote: From: Anthony PERARD In the Xen case, the guest RAM is not handle by QEMU, and it is saved by Xen tools. So, we just avoid to register the RAM save state handler. Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini --- vl.c |6

[Qemu-devel] [PATCH 18/25] usb: pass USBEndpoint to usb_wakeup

2012-01-23 Thread Gerd Hoffmann
Devices must specify which endpoint has data to transfer now. The plan is to use the usb_wakeup() not only for remove wakeup support, but for "data ready" signaling in general, so we can move away from constant polling to event driven usb device emulation. Signed-off-by: Gerd Hoffmann --- hw/usb

Re: [Qemu-devel] [PATCH v4 0/6] save/restore on Xen

2012-01-23 Thread Anthony Liguori
On 01/23/2012 04:47 AM, Stefano Stabellini wrote: On Fri, 20 Jan 2012, Jan Kiszka wrote: On 2012-01-20 18:20, Stefano Stabellini wrote: Hi all, this is the fourth version of the Xen save/restore patch series. We have been discussing this issue for quite a while on #qemu and qemu-devel: http:/

[Qemu-devel] [PATCH 11/25] usb-xhci: switch to usb_find_device()

2012-01-23 Thread Gerd Hoffmann
Switch over xHCI to use the new usb_find_device() function for device lookup. Signed-off-by: Gerd Hoffmann --- hw/usb-xhci.c | 12 ++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/hw/usb-xhci.c b/hw/usb-xhci.c index e089a1b..a9767e3 100644 --- a/hw/usb-xhci.c +++ b/

<    1   2