Re: [Qemu-devel] Support for VNC LED state extension proposal

2013-04-15 Thread Gerd Hoffmann
Hi, >> What is your vnc client? Does it support VNC_ENCODING_EXT_KEY_EVENT? > > It's uses gvnc as a protocol library and renders via fbdev. It reads > keyboard events by putting /dev/tty into mediumraw mode and uses ext key > events exclusively. It has no knowledge of the guest keymap. Neat

Re: [Qemu-devel] weird behaviour of numlock key

2013-04-15 Thread Nikola Ciprich
Hi Gerd, > Do things improve with a gtk-vnc based client? vinagre or > remote-viewer (comes bundles with recent virt-viewer versions)? tried vinagre now, same result... nik > > cheers, > Gerd > > -- - Ing. Nikola CIPRICH LinuxBox.cz, s.r.o. 28.rijna

Re: [Qemu-devel] USB2.0 disk format failure in windows guest

2013-04-15 Thread Alan Stern
On Sun, 14 Apr 2013, Gonglei (Arei) wrote: > > > Hi Alan, > > > We pass-throughed USB 2.0 disk to guest using usb-host (qemu option: > > -device usb-ehci,id=ehci -device usb-host,bus=ehci.0,hostbus=2,hostport=1) > > on > > KVM(on linux-3.8.3 or linux-3.0.13) and qemu 1.4.0 , > > > > Are you sure

[Qemu-devel] Qemu redirection option behave differently on Linux and Windows

2013-04-15 Thread Taimoor Mirza
Hi Everyone, I am trying to use QEMU's port forwarding option with my application and have observed following difference in behaviour on Windows and Linux: * If I relaunch QEMU with same host and guest port redirection values on Linux, it throws following error:qemu-system-arm: could not set up h

[Qemu-devel] SoC Idea: Xbox target

2013-04-15 Thread Niel van der Westhuizen
Hey, So I've been lazily hacking away on https://github.com/espes/xqemu for the last few months. It's a target for the original Xbox in Qemu - it's kind of a neat fit, since the Xbox was mostly an nForce 420 PC. It'd be awesome to have helping out on this as a listed Summer of Code project idea. (

[Qemu-devel] [Bug 1169049] [NEW] do not stop on first gdb breakpoint with -enable-kvm

2013-04-15 Thread skovalev
Public bug reported: I run qemu like this: qemu-system-x86-64 -enable-kvm -hda -s -S, and start gdb with commands like this: gdb>tartget remote localhost:1234 gdb>break *0x7c00 gdb>c but gdb don't stop on it. I then could break execution manually and then breakpoints work. QEMU version

[Qemu-devel] [PATCH] ARM Cortex A9 Global Timer

2013-04-15 Thread François Legal
Hello, I made up this patch to implement the Cortex A9 global timer in Qemu. My patch is based on the Qemu branch maintained by Xilinx for the Zynq. diff -urN qemu-master/hw/cpu/a9mpcore.c qemu-master.new/hw/cpu/a9mpcore.c --- qemu-master/hw/cpu/a9mpcore.c 2013-04-08 20:12:33.0 +02

Re: [Qemu-devel] weird behaviour of numlock key

2013-04-15 Thread Gerd Hoffmann
On 04/15/13 17:43, Nikola Ciprich wrote: > Hi Gerd, > > I'm using tigervnc, but the problem occurs also with xrdp vnc2rdp > proxy.. Do things improve with a gtk-vnc based client? vinagre or remote-viewer (comes bundles with recent virt-viewer versions)? cheers, Gerd

Re: [Qemu-devel] [PULL 5/8] rdma: core rdma logic

2013-04-15 Thread Paolo Bonzini
Il 16/04/2013 06:49, Paolo Bonzini ha scritto: >> > +remote_ram_blocks.num_blocks = remote_ram_blocks.remote_area; >> > +remote_ram_blocks.block = (void *) (remote_ram_blocks.num_blocks + 1); > You cannot do this, it doesn't guarantee that remote_ram_blocks.block is > correctly aligned. Pl

[Qemu-devel] [PATCH] monitor: fix the wrong order of releasing keys

2013-04-15 Thread Amos Kong
(qemu) sendkey ctrl_r-scroll_lock-scroll_lock Executing this command could not let Windows guest panic, it caused by the wrong order of releasing keys. This problem was introduced by commit e4c8f004c55d9da3eae3e14df740238bf805b5d6. The right release order should be starting from last item. Signe

Re: [Qemu-devel] QTest with TCG?

2013-04-15 Thread Paolo Bonzini
Il 15/04/2013 21:03, Anthony Liguori ha scritto: > "Edgar E. Iglesias" writes: > >> Hi, >> >> I would like to use qtest for testing hw-models in combination with firmware. >> >> At the moment I'm using the following patch to allow qtest to run without >> accel=qtest. I'm mostly interested in the

Re: [Qemu-devel] [PULL 4/8] rdma: introduce capability for chunk registration

2013-04-15 Thread Paolo Bonzini
Il 16/04/2013 04:44, mrhi...@linux.vnet.ibm.com ha scritto: > { 'enum': 'MigrationCapability', > - 'data': ['xbzrle'] } > + 'data': ['xbzrle', 'chunk_register_destination'] } x-chunk_register_destination. Or better, "x-rdma_chunk_registration". Paolo

Re: [Qemu-devel] [PULL 2/8] rdma: new QEMUFileOps hooks

2013-04-15 Thread Michael R. Hines
On 04/15/2013 11:24 PM, Paolo Bonzini wrote: Il 16/04/2013 04:44, mrhi...@linux.vnet.ibm.com ha scritto: +void ram_control_load_hook(QEMUFile *f, uint32_t flags) +{ +int ret = 0; + +if (f->ops->hook_ram_load) { +ret = f->ops->hook_ram_load(f, f->opaque, flags); +if (ret <

[Qemu-devel] [PATCH v3 1/3] debugcon: fix always print "addr=0x0, val=0x0" bug

2013-04-15 Thread liguang
when use DEBUG_DEBUGCON, screen spits: debugcon: write addr=0x val=0x00 Rdebugcon: write addr=0x val=0x00 udebugcon: write addr=0x val=0x00 ndebugcon: write addr=0x val=0x00 ndebugcon: write addr=0x val=0x00 idebugcon: write addr=0x val=0x00 ndebugcon: write addr=0x val=

[Qemu-devel] [PATCH v3 3/3] debugcon: fix compiler warning when open DEBUG_DEBUGCON

2013-04-15 Thread liguang
compiler warnings: CChw/char/debugcon.o hw/char/debugcon.c: In function ‘debugcon_ioport_write’: hw/char/debugcon.c:58: warning: format ‘%02x’ expects type ‘unsigned int’, but argument 3 has type ‘uint64_t’ hw/char/debugcon.c: In function ‘debugcon_ioport_read’: hw/char/debugcon.c:70: warnin

[Qemu-devel] [PATCH v3 2/3] debugcon: make debug message more readable

2013-04-15 Thread liguang
before change: Bdebugcon: write addr=0x val=0x6f odebugcon: write addr=0x val=0x6f odebugcon: write addr=0x val=0x74 tdebugcon: write addr=0x val=0x69 idebugcon: write addr=0x val=0x6e ndebugcon: write addr=0x val=0x67 gdebugcon: write addr=0x val=0x20 debugcon: write a

Re: [Qemu-devel] [qemu-devel] Bug Report: VM crashed for some kinds of vCPU in nested virtualization

2013-04-15 Thread 李春奇
I changed to the latest version of kvm kernel but the bug also occured. On the startup of L1 VM on the host, the host kern.log will output: Apr 16 11:28:22 Blade1-02 kernel: [ 4908.458090] kvm [2808]: vcpu0 unhandled rdmsr: 0x345 Apr 16 11:28:22 Blade1-02 kernel: [ 4908.458166] kvm_set_msr_common:

Re: [Qemu-devel] [PATCH v2 2/3] debugcon: make debug message more readable

2013-04-15 Thread li guang
在 2013-04-15一的 21:44 -0500,Jesse Larrew写道: > On 04/14/2013 09:14 PM, liguang wrote: > > #ifdef DEBUG_DEBUGCON > > -printf("debugcon: write addr=0x%04" HWADDR_PRIx " val=0x%02x\n", addr, > > val); > > +printf(" [debugcon: write addr=0x%04" HWADDR_PRIx " val=0x%02]\n", > > addr, val); > >

Re: [Qemu-devel] USB2.0 disk format failure in windows guest

2013-04-15 Thread Gonglei (Arei)
> -Original Message- > From: Alan Stern [mailto:st...@rowland.harvard.edu] > Sent: Tuesday, April 16, 2013 1:44 AM > To: Gonglei (Arei) > Cc: linux-...@vger.kernel.org; Yanqiangjun; Hanweidong; Luonengjun; > kra...@redhat.com; hdego...@redhat.com; qemu-devel@nongnu.org > Subject: RE: USB2.

Re: [Qemu-devel] [PULL 6/8] rdma: send pc.ram

2013-04-15 Thread Paolo Bonzini
Il 16/04/2013 04:44, mrhi...@linux.vnet.ibm.com ha scritto: > +} else if (flags & RAM_SAVE_FLAG_HOOK) { > +ram_control_load_hook(f, RAM_CONTROL_HOOK); > } Please pass flags as the second parameter (and change the argument to uint64_t). Paolo

Re: [Qemu-devel] [PULL 2/8] rdma: new QEMUFileOps hooks

2013-04-15 Thread Paolo Bonzini
Il 16/04/2013 04:44, mrhi...@linux.vnet.ibm.com ha scritto: > +void ram_control_load_hook(QEMUFile *f, uint32_t flags) > +{ > +int ret = 0; > + > +if (f->ops->hook_ram_load) { > +ret = f->ops->hook_ram_load(f, f->opaque, flags); > +if (ret < 0) { > +qemu_file_set

Re: [Qemu-devel] [PULL 0/8] rdma: migration support

2013-04-15 Thread Paolo Bonzini
Il 16/04/2013 04:44, mrhi...@linux.vnet.ibm.com ha scritto: > From: "Michael R. Hines" > > The following changes since commit 24a6e7f4d91e9ed5f8117ecb083431a23f8609a0: > > virtio-balloon: fix dynamic properties. (2013-04-15 17:06:58 -0500) > > are available in the git repository at: > > g.

Re: [Qemu-devel] [PATCH] pixman: remove -Wredundand-decls

2013-04-15 Thread Alexey Kardashevskiy
On 04/16/2013 08:48 AM, Alexey Kardashevskiy wrote: On 04/16/2013 01:55 AM, Markus Armbruster wrote: Alexey Kardashevskiy writes: On 04/15/2013 10:57 PM, Markus Armbruster wrote: Alexey Kardashevskiy writes: On 04/15/2013 08:01 PM, Peter Maydell wrote: On 15 April 2013 10:50, Alexey Kard

Re: [Qemu-devel] [PATCH V2 18/20] virtio-net: multiqueue support

2013-04-15 Thread Jason Wang
On 04/15/2013 04:28 PM, Aurelien Jarno wrote: > On Mon, Apr 15, 2013 at 01:29:01PM +0800, Jason Wang wrote: >> On 04/13/2013 09:17 PM, Aurelien Jarno wrote: >>> On Fri, Jan 25, 2013 at 06:35:41PM +0800, Jason Wang wrote: This patch implements both userspace and vhost support for multiple queue

Re: [Qemu-devel] [PATCH v2 3/3] debugcon: fix compiler warning when open DEBUG_DEBUGCON

2013-04-15 Thread li guang
在 2013-04-15一的 21:51 -0500,Jesse Larrew写道: > On 04/14/2013 09:14 PM, liguang wrote: > > compiler warnings: > > CChw/char/debugcon.o > > hw/char/debugcon.c: In function ‘debugcon_ioport_write’: > > hw/char/debugcon.c:58: warning: format ‘%02x’ expects type ‘unsigned int’, > > but argument 3 h

Re: [Qemu-devel] The details of round robin of multi-vcpu in TCG mode

2013-04-15 Thread li guang
You can find the chance of exit main loop by every calling of cpu_loop_exit() in cpu_exec(). 在 2013-04-16二的 09:51 +0800,puckbee写道: > Hi there: > > Sorry to post this problem a second time, for I thought maybe the > question is not descripted clearly. > > I'm studying the execution detai

Re: [Qemu-devel] [PATCH v2 3/3] debugcon: fix compiler warning when open DEBUG_DEBUGCON

2013-04-15 Thread Jesse Larrew
On 04/14/2013 09:14 PM, liguang wrote: > compiler warnings: > CChw/char/debugcon.o > hw/char/debugcon.c: In function ‘debugcon_ioport_write’: > hw/char/debugcon.c:58: warning: format ‘%02x’ expects type ‘unsigned int’, > but argument 3 has type ‘uint64_t’ > hw/char/debugcon.c: In function ‘d

[Qemu-devel] [PULL 8/8] rdma: add documentation

2013-04-15 Thread mrhines
From: "Michael R. Hines" docs/rdma.txt contains full documentation, wiki links, github url and contact information. Signed-off-by: Michael R. Hines --- docs/rdma.txt | 336 + 1 file changed, 336 insertions(+) create mode 100644 docs/rdm

[Qemu-devel] [PULL 6/8] rdma: send pc.ram

2013-04-15 Thread mrhines
From: "Michael R. Hines" This takes advantages of the previous patches: 1. use the new QEMUFileOps hook 'save_page' 2. call out to the right accessor methods to invoke the iteration hooks defined in QEMUFileOps Signed-off-by: Michael R. Hines --- arch_init.c | 35 +++

[Qemu-devel] [PULL 2/8] rdma: new QEMUFileOps hooks

2013-04-15 Thread mrhines
From: "Michael R. Hines" These are the prototypes and implementation of new hooks that RDMA takes advantage of to perform dynamic page registration. An optional hook is also introduced for a custom function to be able to override the default save_page function. Also included are the prototypes

[Qemu-devel] [PULL 4/8] rdma: introduce capability for chunk registration

2013-04-15 Thread mrhines
From: "Michael R. Hines" This capability allows you to disable dynamic chunk registration for better throughput on high-performance links. It is enabled by default. Signed-off-by: Michael R. Hines --- include/migration/migration.h |2 ++ migration.c | 11 ++- q

[Qemu-devel] [PULL 3/8] rdma: export ram_handle_compressed()

2013-04-15 Thread mrhines
From: "Michael R. Hines" This gives RDMA shared access to madvise() on the destination side when an entire chunk is found to be zero. Signed-off-by: Michael R. Hines --- arch_init.c | 24 include/migration/migration.h |1 + 2 files changed, 17 i

[Qemu-devel] [PULL 7/8] rdma: print out throughput while debugging

2013-04-15 Thread mrhines
From: "Michael R. Hines" It's very helpful when debugging to print out migration throughput after each iteration round to compare the different migration technologies. Signed-off-by: Michael R. Hines --- migration.c |8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a

[Qemu-devel] [PULL 0/8] rdma: migration support

2013-04-15 Thread mrhines
From: "Michael R. Hines" The following changes since commit 24a6e7f4d91e9ed5f8117ecb083431a23f8609a0: virtio-balloon: fix dynamic properties. (2013-04-15 17:06:58 -0500) are available in the git repository at: g...@github.com:hinesmr/qemu.git rdma_patch_v2 for you to fetch changes up to 6

[Qemu-devel] [PULL 1/8] rdma: introduce qemu_ram_foreach_block

2013-04-15 Thread mrhines
From: "Michael R. Hines" This is used during RDMA initialization in order to transmit a description of all the RAM blocks to the peer for later dynamic chunk registration purposes. Signed-off-by: Michael R. Hines --- exec.c|9 + include/exec/cpu-common.h |5

Re: [Qemu-devel] [PATCH v2 2/3] debugcon: make debug message more readable

2013-04-15 Thread Jesse Larrew
On 04/14/2013 09:14 PM, liguang wrote: > #ifdef DEBUG_DEBUGCON > -printf("debugcon: write addr=0x%04" HWADDR_PRIx " val=0x%02x\n", addr, > val); > +printf(" [debugcon: write addr=0x%04" HWADDR_PRIx " val=0x%02]\n", addr, > val); I like the reformatting, but it looks like you accidentall

Re: [Qemu-devel] [PATCH v2 1/3] debugcon: fix always print "addr=0x0, val=0x0" bug

2013-04-15 Thread Jesse Larrew
On 04/14/2013 09:14 PM, liguang wrote: > when use DEBUG_DEBUGCON, screen spits: > debugcon: write addr=0x val=0x00 > Rdebugcon: write addr=0x val=0x00 > udebugcon: write addr=0x val=0x00 > ndebugcon: write addr=0x val=0x00 > ndebugcon: write addr=0x val=0x00 > idebugcon: write a

[Qemu-devel] The details of round robin of multi-vcpu in TCG mode

2013-04-15 Thread puckbee
Hi there: Sorry to post this problem a second time, for I thought maybe the question is not descripted clearly. I'm studying the execution details of multi-vcpu in TCG mode. The vcpus in TCG mode are executed one by one in a sequencial way, according to some articles about Qemu. I read the func

[Qemu-devel] [PATCH] qdev: Fix device_add bus assumptions

2013-04-15 Thread Andreas Färber
Drop an unreachable fallback bus assignment to SysBus. If no ,bus= is specified, only search busses recursively for bus type if the DeviceClass has a bus_type specified. Handle resulting NULL cases. Signed-off-by: Andreas Färber --- qdev-monitor.c | 16 1 file changed, 8 insert

[Qemu-devel] [Bug 1169375] [NEW] qemu.git master -> qemu segfaults during tcp migration (and other modes when using MALLOC_PERTURB_=1)

2013-04-15 Thread Lucas Meneghel Rodrigues
'virt-tests-vm1' \ -nodefaults \ -chardev socket,id=hmp_id_hmp1,path=/tmp/monitor-hmp1-20130415-214507-8fDeX7Fj,server,nowait \ -mon chardev=hmp_id_hmp1,mode=readline \ -chardev socket,id=serial_id_serial1,path=/tmp/serial-serial1-20130415-214507-8fDeX7Fj,ser

[Qemu-devel] [PATCH 10/12] cpu: Pass CPUState to *cpu_synchronize_post*()

2013-04-15 Thread Andreas Färber
From: Igor Mammedov ... so it could be called without requiring CPUArchState. Signed-off-by: Igor Mammedov Reviewed-by: Eduardo Habkost Signed-off-by: Andreas Färber --- cpus.c | 4 ++-- include/sysemu/kvm.h | 12 ++-- kvm-all.c| 8 ++-- kvm-stub.c

[Qemu-devel] [PATCH 11/12] qdev: Set device's parent before calling realize() down inheritance chain

2013-04-15 Thread Andreas Färber
From: Igor Mammedov Currently device_set_realized() sets parent only after device was realized, but qdev_device_add() sets it before device is realized. Make behavior consistent and alter device_set_realized() to behave like qdev_device_add(). It will allow to set link<> properties in realize()

[Qemu-devel] [PATCH 08/12] target-i386/cpu.c: Coding style fixes

2013-04-15 Thread Andreas Färber
From: Eduardo Habkost * Add braces to 'if' statements; * Remove last TAB character from the source. Signed-off-by: Eduardo Habkost [AF: Changed whitespace] Reviewed-by: Igor Mammedov Signed-off-by: Andreas Färber --- target-i386/cpu.c | 7 --- 1 file changed, 4 insertions(+), 3 deletio

[Qemu-devel] [PATCH 12/12] target-cris: Override do_interrupt for pre-v32 CPU cores

2013-04-15 Thread Andreas Färber
Instead of forwarding from cris_cpu_do_interrupt() to do_interruptv10(), override CPUClass::do_interrupt with crisv10_cpu_do_interrupt() in the newly introduced class_init functions. Acked-by: Edgar E. Iglesias Signed-off-by: Andreas Färber --- target-cris/cpu-qom.h | 1 + target-cris/cpu.c

[Qemu-devel] [PATCH 05/12] target-i386: Split APIC creation from initialization in x86_cpu_realizefn()

2013-04-15 Thread Andreas Färber
From: Igor Mammedov When APIC is hotplugged during CPU hotplug, device_set_realized() calls device_reset() on it. And if QEMU runs in KVM mode, following call chain will fail: apic_reset_common() -> kvm_apic_vapic_base_update() -> kvm_vcpu_ioctl(cpu->kvm_fd,...) due to cpu

[Qemu-devel] [PATCH 04/12] target-i386: Consolidate error propagation in x86_cpu_realizefn()

2013-04-15 Thread Andreas Färber
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Paolo Bonzini Reviewed-by: Eduardo Habkost Signed-off-by: Andreas Färber --- target-i386/cpu.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 0a4e

[Qemu-devel] [PATCH 07/12] ioapic: Replace FROM_SYSBUS() with QOM type cast

2013-04-15 Thread Andreas Färber
From: Igor Mammedov Signed-off-by: Igor Mammedov Signed-off-by: Andreas Färber --- hw/intc/ioapic_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/intc/ioapic_common.c b/hw/intc/ioapic_common.c index 42c7adc..5c5bb3c 100644 --- a/hw/intc/ioapic_common.c +++ b/hw/

[Qemu-devel] [PULL 00/12] QOM CPUState patch queue 2013-04-15

2013-04-15 Thread Andreas Färber
Hello, This is my current QOM CPU patch queue. Please pull. It includes: * -cpu ? fixes, * preparations for x86 CPU static properties, * preparations for x86 CPU hot-plug, * preparations for x86 CPUID features array cleanup, * do_interrupt cleanup for cris. Regards, Andreas Cc: Anthony Liguori

[Qemu-devel] [PATCH 09/12] target-i386: Split out CPU creation and features parsing

2013-04-15 Thread Andreas Färber
From: Igor Mammedov Move CPU creation and features parsing into a separate cpu_x86_create() function, so that board would be able to set board-specific CPU properties before CPU is realized. Keep cpu_x86_init() for compatibility with the code that uses cpu_init() and doesn't need to modify CPU p

[Qemu-devel] [PATCH 03/12] qdev: Add qdev property for bool type

2013-04-15 Thread Andreas Färber
From: Igor Mammedov Signed-off-by: Igor Mammedov [AF: Use new qdev_prop_set_after_realize()] Signed-off-by: Andreas Färber --- hw/core/qdev-properties.c| 33 + include/hw/qdev-properties.h | 10 ++ 2 files changed, 43 insertions(+) diff --git a/hw/c

[Qemu-devel] [PATCH 06/12] kvmvapic: Replace FROM_SYSBUS() with QOM type cast

2013-04-15 Thread Andreas Färber
From: Igor Mammedov ... and define type name and type cast macro for kvmvapic according to accepted convention. Signed-off-by: Igor Mammedov Signed-off-by: Andreas Färber --- hw/i386/kvmvapic.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/i386/kvmvapic.c b/hw/

[Qemu-devel] [PATCH 01/12] target-i386: Fix including "host" in -cpu ? output

2013-04-15 Thread Andreas Färber
From: Jan Kiszka kvm_enabled() cannot be true at this point because accelerators are initialized much later during init. Also, hiding this makes it very hard to discover for users. Simply dump unconditionally if CONFIG_KVM is set. Add explanation for "host" CPU type. Signed-off-by: Jan Kiszka

[Qemu-devel] [PATCH 02/12] target-i386: Improve -cpu ? features output

2013-04-15 Thread Andreas Färber
From: Jan Kiszka We were missing a bunch of feature lists. Fix this by simply dumping the meta list feature_word_info. Signed-off-by: Jan Kiszka Reviewed-by: Igor Mammedov Signed-off-by: Andreas Färber --- target-i386/cpu.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-)

[Qemu-devel] [PATCH v3 6/7] hw/i386/pc.c: move IO_APIC_DEFAULT_ADDRESS to include/hw/i386/apic.h

2013-04-15 Thread Laszlo Ersek
From: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Signed-off-by: Laszlo Ersek --- include/hw/i386/apic.h |2 ++ hw/i386/pc.c |2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/hw/i386/apic.h b/include/hw/i386/apic.h index 1d48e02..edbb37f 1

[Qemu-devel] [PATCH v3 4/4] m25p80: Add debug message for no bdrv

2013-04-15 Thread peter . crosthwaite
From: Peter Crosthwaite If there is no backing bdrv, let the debugging developer know about it. Signed-off-by: Peter Crosthwaite --- hw/block/m25p80.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c index a2816c1..f8b6409 100644 -

[Qemu-devel] [PATCH v3 3/4] m25p80.c: Multiple debug verbosity levels

2013-04-15 Thread peter . crosthwaite
From: Peter Crosthwaite The debug printfs on every page program/read is extremely verbose. Add a second level of debug for this. Signed-off-by: Peter Crosthwaite --- hw/block/m25p80.c | 40 +--- 1 files changed, 21 insertions(+), 19 deletions(-) diff --g

[Qemu-devel] [PATCH v3 2/4] m25p80: Convert guest errors to LOG_GUEST_ERROR

2013-04-15 Thread peter . crosthwaite
From: Peter Crosthwaite Some of the debug printfs in m25p80 are really guest errors. Changed over to qemu_log_mask(LOG_GUEST_ERROR accordingly. Signed-off-by: Peter Crosthwaite --- hw/block/m25p80.c | 12 +++- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/hw/block/m

[Qemu-devel] [PATCH v3 1/4] m25p80: Fix debug messages.

2013-04-15 Thread peter . crosthwaite
From: Peter Crosthwaite Some dodgy casts were making a mess of these msgs. Signed-off-by: Peter Crosthwaite --- Remove misleading "k" suffix from erase size message Use PRIxN macros where appropriate (Edgar review) hw/block/m25p80.c | 13 +++-- 1 files changed, 7 insertions(+), 6 de

[Qemu-devel] [PATCH v3 0/4] m25p80: Fix debug printfery

2013-04-15 Thread peter . crosthwaite
From: Peter Crosthwaite Fix up the debug printfery m25p80 in various ways. 0 functional diff. changed from v2: Rebased against hw reorg Peter Crosthwaite (4): m25p80: Fix debug messages. m25p80: Convert guest errors to LOG_GUEST_ERROR m25p80.c: Multiple debug verbosity levels m25p80: A

[Qemu-devel] [PATCH v6 15/16] xilinx_axienet/dma: Implement rx path flow control

2013-04-15 Thread peter . crosthwaite
From: Peter Crosthwaite Implement flow control for the RX data path from xilinx_axienet->xilinx_axidma. On short return from axidma, then ethernet sets up the notify callback to resume transfer from where it left off. This also allows the ethernet to track whether there is an in progress transa

[Qemu-devel] [PATCH v6 13/16] xilinx_axidma: Fix rx/tx halted bit.

2013-04-15 Thread peter . crosthwaite
From: Peter Crosthwaite If there is no DMA buffer descriptor, the DMA halts, not idles. Signed-off-by: Peter Crosthwaite Acked-by: Edgar E. Iglesias --- changed from v3: Fixed for TX path as well as RX hw/dma/xilinx_axidma.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff

[Qemu-devel] [PATCH v6 16/16] stream: Remove app argument hack

2013-04-15 Thread peter . crosthwaite
From: Peter Crosthwaite The uint32_t *app argument doesn't exist in real hardware. It was a hack in xilinx_axidma/enet to fake the (secondary) control stream connection. Removed the argument and added the second stream to axienet/dma. Signed-off-by: Peter Crosthwaite --- changed since v3: Rebas

[Qemu-devel] [PATCH v6 12/16] xilinx_axidma: Create Proxy object for stream

2013-04-15 Thread peter . crosthwaite
From: Peter Crosthwaite Create a separate child object to proxy the stream slave connection. This is setup for future work where a second stream slave connection is needed. The new child object is created at qdev init time and is linked back to the parent (the ethernet device itself) automaticall

[Qemu-devel] [PATCH v6 11/16] xilinx_axienet: Create Proxy object for stream

2013-04-15 Thread peter . crosthwaite
From: Peter Crosthwaite Create a separate child object to proxy the stream slave connection. This is setup for future work where a second stream slave connection is needed. The new child object is created at qdev init time and is linked back to the parent (the ethernet device itself) automaticall

[Qemu-devel] [PATCH v6 14/16] stream: Add flow control API

2013-04-15 Thread peter . crosthwaite
From: Peter Crosthwaite Add basic flow control to stream. A stream slave may return short, indicating that it is not capable of accepting any more data at the present time. Polling or a callback can be used via the can_push() function to determine when the slave can receive again. Signed-off-by:

[Qemu-devel] [PATCH v6 03/16] xilinx_axienet: Register reset properly

2013-04-15 Thread peter . crosthwaite
From: Peter Crosthwaite Register the reset function and the Device::reset function rather than explicitly call it from the sysbus::init. Signed-off-by: Peter Crosthwaite Reviewed-by: Andreas Färber Acked-by: Edgar E. Iglesias --- hw/net/xilinx_axienet.c |6 -- 1 files changed, 4 ins

[Qemu-devel] [PATCH v6 09/16] petalogix_ml605_mmu: Fix machine node attachment

2013-04-15 Thread peter . crosthwaite
From: Peter Crosthwaite Just attach devices straight to the root machine node, rather than the "unattached node" Signed-off-by: Peter Crosthwaite Reviewed-by: Andreas Färber Acked-by: Edgar E. Iglesias --- Suggested (indirectly) by Andreas if he wants to put his Suggested-by to it. hw/micro

[Qemu-devel] [PATCH v6 10/16] petalogix_ml605_mmu: Attach ethernet to machine

2013-04-15 Thread peter . crosthwaite
From: Peter Crosthwaite Explicitly make the ethernet a child of the machine. This is needed to set and use links pre-realize. Also makes the ethernet initialization consistent with its peer DMA. Signed-off-by: Peter Crosthwaite Reviewed-by: Andreas Färber Acked-by: Edgar E. Iglesias --- hw/

[Qemu-devel] [PATCH v6 06/16] xilinx_axidma: Defined and use type cast macro

2013-04-15 Thread peter . crosthwaite
From: Peter Crosthwaite Standard QOM cast macro. Replaces usages of FROM_SYSBUS Signed-off-by: Peter Crosthwaite Acked-by: Edgar E. Iglesias --- hw/dma/xilinx_axidma.c | 13 + 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/hw/dma/xilinx_axidma.c b/hw/dma/xilinx_

[Qemu-devel] [PATCH v3 5/7] hw/acpi: export acpi_checksum()

2013-04-15 Thread Laszlo Ersek
Again, this enables reuse when preparing per-table fw_cfg blobs later. Signed-off-by: Laszlo Ersek --- include/hw/acpi/acpi.h |2 ++ hw/acpi/core.c |2 +- 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/include/hw/acpi/acpi.h b/include/hw/acpi/acpi.h index bc7e107.

[Qemu-devel] [PATCH v6 08/16] xilinx_axidma: converted init->realize

2013-04-15 Thread peter . crosthwaite
From: Peter Crosthwaite The prescribed transition from SysBusDevice::init to Device::realize. I'm going with Andreas suggestion to move the sysbus foo to Object::init for early IRQ visibility. Signed-off-by: Peter Crosthwaite Acked-by: Edgar E. Iglesias --- hw/dma/xilinx_axidma.c | 26

[Qemu-devel] [PATCH v6 05/16] xilinx_axidma: typedef XilinxAXIDMA struct

2013-04-15 Thread peter . crosthwaite
From: Peter Crosthwaite Typedef xilinx_axidma's object state struct to shorten the repeated usages of struct XilinxAXIDMA. Signed-off-by: Peter Crosthwaite Acked-by: Edgar E. Iglesias --- hw/dma/xilinx_axidma.c | 16 +--- 1 files changed, 9 insertions(+), 7 deletions(-) diff -

[Qemu-devel] [PATCH v3 1/7] refer to FWCfgState explicitly

2013-04-15 Thread Laszlo Ersek
Currently some places use pointer-to-void even though they mean pointer-to-FWCfgState. Clean them up. Signed-off-by: Laszlo Ersek --- hw/i386/multiboot.h |4 +++- include/hw/i386/pc.h | 19 ++- include/hw/loader.h |3 ++- hw/acpi/piix4.c |2 +- hw/core/loader

[Qemu-devel] [PATCH v6 07/16] xilinx_axidma: Register reset properly

2013-04-15 Thread peter . crosthwaite
From: Peter Crosthwaite Register the reset function as the Device::reset function rather than explicitly call it from the sysbus::init. Signed-off-by: Peter Crosthwaite Acked-by: Edgar E. Iglesias --- hw/dma/xilinx_axidma.c | 12 +++- 1 files changed, 11 insertions(+), 1 deletions(

[Qemu-devel] [PATCH v6 04/16] xilinx_axienet: converted init->realize

2013-04-15 Thread peter . crosthwaite
From: Peter Crosthwaite The prescribed transition from SysBusDevice::init to Device::realize. Im going with Andreas suggestion to move the sysbus foo to Object::init for early IRQ visibility. Signed-off-by: Peter Crosthwaite Reviewed-by: Andreas Färber Acked-by: Edgar E. Iglesias --- Changed

[Qemu-devel] [PATCH v3 2/7] acpi_table_install(): fix funcparam formatting in leading comment

2013-04-15 Thread Laszlo Ersek
Signed-off-by: Laszlo Ersek --- hw/acpi/core.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/acpi/core.c b/hw/acpi/core.c index 64b8718..69cadb0 100644 --- a/hw/acpi/core.c +++ b/hw/acpi/core.c @@ -86,7 +86,7 @@ static int acpi_checksum(const uint8_t *data, int len

[Qemu-devel] [PATCH v3 4/7] hw/acpi: export default ACPI headers using the type just introduced

2013-04-15 Thread Laszlo Ersek
This enables reuse when preparing per-table fw_cfg blobs later. Signed-off-by: Laszlo Ersek --- include/hw/acpi/acpi.h |2 ++ hw/acpi/core.c | 39 --- 2 files changed, 26 insertions(+), 15 deletions(-) diff --git a/include/hw/acpi/acpi.h b/inclu

[Qemu-devel] [PATCH v3 7/7] hw/i386: build ACPI MADT (APIC) for fw_cfg clients

2013-04-15 Thread Laszlo Ersek
This patch reuses some code from SeaBIOS, which was originally under LGPLv2 and then relicensed to GPLv3 or LGPLv3, in QEMU under GPLv2+. This relicensing has been acked by all contributors that had contributed to the code since the v2->v3 relicense. ACKs approving the v2+ relicensing are listed be

[Qemu-devel] [PATCH v3 3/7] hw/acpi: extract standard table headers as a standalone structure

2013-04-15 Thread Laszlo Ersek
This enables reuse when preparing per-table fw_cfg blobs later. Signed-off-by: Laszlo Ersek --- include/hw/acpi/acpi.h | 11 +++ hw/acpi/core.c | 48 +--- 2 files changed, 32 insertions(+), 27 deletions(-) diff --git a/include/hw/a

[Qemu-devel] [PATCH v3 0/7] publish etc/acpi/APIC in fw_cfg

2013-04-15 Thread Laszlo Ersek
v1 blurb: This series exports the MADT (APIC) ACPI table under the new "etc/acpi/APIC" fw_cfg file. I sought to follow the requirements set forth in [1], the new table is only visible in the patched/patched case. I cross-tested { master, patched } qemu with { master, patched } seabios (t

[Qemu-devel] [PATCH v6 02/16] xilinx_axienet: Defined and use type cast macro

2013-04-15 Thread peter . crosthwaite
From: Peter Crosthwaite Standard QOM cast macro. Replaces usages of FROM_SYSBUS Signed-off-by: Peter Crosthwaite Reviewed-by: Andreas Färber Acked-by: Edgar E. Iglesias --- hw/net/xilinx_axienet.c | 11 --- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/hw/net/xili

[Qemu-devel] [PATCH v6 01/16] xilinx_axienet: typedef XilinxAXIEnet struct

2013-04-15 Thread peter . crosthwaite
From: Peter Crosthwaite Typedef xilinx_axienets object state struct to shorten the repeated usages of struct XilinxAXIEnet. Signed-off-by: Peter Crosthwaite Reviewed-by: Andreas Färber Acked-by: Edgar E. Iglesias --- hw/net/xilinx_axienet.c | 44 +++

[Qemu-devel] [PATCH v6 00/16] Stream Patches

2013-04-15 Thread peter . crosthwaite
From: Peter Crosthwaite Hi all. The Xilinx AXIEnet and DMA devices have two AXI stream connections (control and data), only one of which is currently modelled (data). AXI stream is modelled using the stream QOM interface described in stream.h. Unfortunately, interfaces have no nice way of modelli

[Qemu-devel] [RFC PATCH v2 5/6] PPC: e500: factor out mpic init code

2013-04-15 Thread Scott Wood
KVM in-kernel MPIC support is going to expand this even more, so let's keep it contained. Signed-off-by: Scott Wood --- hw/ppc/e500.c | 56 ++-- 1 file changed, 34 insertions(+), 22 deletions(-) diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c ind

[Qemu-devel] [RFC PATCH v2 6/6] kvm/openpic: in-kernel mpic support

2013-04-15 Thread Scott Wood
This depends on RFC kernel interfaces proposed at: http://patchwork.ozlabs.org/patch/236285/ http://patchwork.ozlabs.org/patch/236288/ http://patchwork.ozlabs.org/patch/236290/ TODO: use KVM_IRQ_LINE Signed-off-by: Scott Wood --- hw/kvm/Makefile.objs |1 + hw/kvm/openpic.c | 259 ++

[Qemu-devel] [RFC PATCH v2 1/6] kvm: update linux-headers

2013-04-15 Thread Scott Wood
These headers have not yet been merged into Linux -- this is an RFC patchset. Signed-off-by: Scott Wood --- linux-headers/asm-powerpc/kvm.h | 16 linux-headers/linux/kvm.h | 34 ++ 2 files changed, 50 insertions(+) diff --git a/linux-he

[Qemu-devel] [RFC PATCH v2 4/6] openpic: factor out some common defines into openpic.h

2013-04-15 Thread Scott Wood
...for use by the KVM in-kernel irqchip stub. Signed-off-by: Scott Wood --- hw/openpic.c | 40 ++-- hw/openpic.h | 11 +++ 2 files changed, 29 insertions(+), 22 deletions(-) diff --git a/hw/openpic.c b/hw/openpic.c index 03a7075..b655381 100644 --

[Qemu-devel] [RFC PATCH v2 3/6] memory: add memory_region_to_address()

2013-04-15 Thread Scott Wood
This is useful for when a user of the memory region API needs to communicate the absolute bus address to something outside QEMU (in particular, KVM). Signed-off-by: Scott Wood --- TODO: Use add/del memory listeners later in the patchset, which would eliminate the need for this patch. --- include

[Qemu-devel] [RFC PATCH v2 0/6] kvm/openpic: in-kernel irqchip

2013-04-15 Thread Scott Wood
This allows QEMU to use the in-kernel KVM MPIC on some PPC platforms. Scott Wood (6): kvm: update linux-headers kvm: use hw/kvm/Makefile.objs consistently for all relevant architectures memory: add memory_region_to_address() openpic: factor out some common defines into openpic.h PPC:

[Qemu-devel] [RFC PATCH v2 2/6] kvm: use hw/kvm/Makefile.objs consistently for all relevant architectures

2013-04-15 Thread Scott Wood
Signed-off-by: Scott Wood --- Build tested on ppc and x86, but not arm as I currently lack a suitable toolchain. Maybe TARGET_I386 should be set on x86_64, instead of needing to test TARGET_BASE_ARCH in Makefile.objs? It seems odd that it's set for x86_64 in C code, but not in the makefiles. ---

Re: [Qemu-devel] [PULL] pci: add pci test device

2013-04-15 Thread Anthony Liguori
"Michael S. Tsirkin" writes: > On Mon, Apr 15, 2013 at 07:28:58AM -0500, Anthony Liguori wrote: >> "Michael S. Tsirkin" writes: >> >> > The following changes since commit >> > e2ec3f976803b360c70d9ae2ba13852fa5d11665: >> > >> > qjson: to_json() case QTYPE_QSTRING is buggy, rewrite (2013-04-1

Re: [Qemu-devel] [PATCH] pixman: remove -Wredundand-decls

2013-04-15 Thread Alexey Kardashevskiy
On 04/16/2013 01:55 AM, Markus Armbruster wrote: Alexey Kardashevskiy writes: On 04/15/2013 10:57 PM, Markus Armbruster wrote: Alexey Kardashevskiy writes: On 04/15/2013 08:01 PM, Peter Maydell wrote: On 15 April 2013 10:50, Alexey Kardashevskiy wrote: /home/alexey/pcipassthru/qemu-impr

Re: [Qemu-devel] unable to boot systemrescuecd with tcg only?

2013-04-15 Thread Aurelien Jarno
On Tue, Apr 16, 2013 at 12:03:10AM +0200, Aurelien Jarno wrote: > On Tue, Apr 16, 2013 at 12:36:36AM +0300, Michael S. Tsirkin wrote: > > On Mon, Apr 15, 2013 at 06:17:18PM +0200, Paolo Bonzini wrote: > > > Il 15/04/2013 17:02, Paolo Bonzini ha scritto: > > > > Il 15/04/2013 11:18, Michael S. Tsirk

Re: [Qemu-devel] [PULL] pci: add pci test device

2013-04-15 Thread Michael S. Tsirkin
On Mon, Apr 15, 2013 at 07:28:58AM -0500, Anthony Liguori wrote: > "Michael S. Tsirkin" writes: > > > The following changes since commit e2ec3f976803b360c70d9ae2ba13852fa5d11665: > > > > qjson: to_json() case QTYPE_QSTRING is buggy, rewrite (2013-04-13 > > 19:40:25 +) > > > > are available

Re: [Qemu-devel] [RFC PATCH RDMA support v5: 03/12] comprehensive protocol documentation

2013-04-15 Thread Michael S. Tsirkin
On Mon, Apr 15, 2013 at 09:07:01AM -0400, Michael R. Hines wrote: > On 04/15/2013 02:00 AM, Michael S. Tsirkin wrote: > >On Sun, Apr 14, 2013 at 09:06:36PM -0400, Michael R. Hines wrote: > >>On 04/14/2013 05:10 PM, Michael S. Tsirkin wrote: > >>>On Sun, Apr 14, 2013 at 03:06:11PM -0400, Michael R.

Re: [Qemu-devel] [PATCH 16/16] add cpu-add qmp command and implement CPU hot-add for target-i386

2013-04-15 Thread Eric Blake
On 04/15/2013 04:12 PM, Igor Mammedov wrote: > ... via current_machine->cpu_hot_add() hook called by cpu-set QMP command, > for x86 target. > > cpu-add's "id" argument is a CPU thread number in a range [0..max-cpus - 1) Off by one. It's either [0..max-cpus) or [0..max-cpus - 1] (they mean the sa

[Qemu-devel] [PATCH 15/16] target-i386: move IOAPIC to ICC bus

2013-04-15 Thread Igor Mammedov
* inherit IOAPICs from ICCDevice and attach them to ICC bus * map IOAPIC's mmio at board level via indirect icc-bridge mmio region that provides address space to IOAPIC via icc-bus Signed-off-by: Igor Mammedov --- * do not create IOAPIC in icc-bridge and do not make it QOM child of ic

[Qemu-devel] [PATCH 14/16] target-i386: move APIC to ICC bus

2013-04-15 Thread Igor Mammedov
... to allow it to be hotplugged * map APIC's mmio at board level if it is present * do not register mmio region for each APIC, since only one is used/mapped Signed-off-by: Igor Mammedov --- hw/cpu/icc_bus.c| 15 ++- hw/i386/kvmvapic.c | 1 + hw/i3

[Qemu-devel] [PATCH 13/16] target-i386: replace MSI_SPACE_SIZE with APIC_SPACE_SIZE

2013-04-15 Thread Igor Mammedov
... and put APIC_SPACE_SIZE in public header so that it could be reused later elsewhere. Signed-off-by: Igor Mammedov --- hw/i386/kvm/apic.c | 2 +- hw/intc/apic.c | 2 +- hw/xen/xen_apic.c | 2 +- include/hw/i386/apic_internal.h | 2 -- target-i386/cp

[Qemu-devel] [PATCH 10/16] target-i386: introduce apic-id property

2013-04-15 Thread Igor Mammedov
... and use it from board level to set APIC ID for CPUs it creates. Signed-off-by: Igor Mammedov Reviewed-by: Paolo Bonzini --- Note: * pc_new_cpu() function will be reused later in CPU hot-plug hook. v3: * user error_propagate() in property setter v2: * use generic cpu_exists() instead o

  1   2   3   4   5   >