[Qemu-devel] [PATCH 2/2] pci init: Check if devfn exceeding the max devices number supported on bus

2010-08-23 Thread Ken CC
Check before trying subindexing. Signed-off-by: Ken CC ken.c...@gmail.com --- hw/pci.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index a09fbac..f6f00c6 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -675,6 +675,10 @@ static PCIDevice

[Qemu-devel] [PATCH] pci init: Check if devfn exceeding the max devices number supported on bus

2010-08-23 Thread Ken CC
Check before trying subindexing. Signed-off-by: Ken CC ken.c...@gmail.com --- hw/pci.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index a09fbac..f6f00c6 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -675,6 +675,10 @@ static PCIDevice

Re: [Qemu-devel] [PATCH v2 0/7] APIC/IOAPIC cleanup

2010-08-23 Thread Avi Kivity
On 08/23/2010 12:06 AM, Anthony Liguori wrote: On 08/22/2010 03:33 PM, Avi Kivity wrote: On 08/22/2010 11:03 PM, Anthony Liguori wrote: On 08/22/2010 02:44 PM, Avi Kivity wrote: No more MI diamond and all devices have DeviceStates. Coincidentally, it matches more closely how hardware

Re: [Qemu-devel] [PATCH v2 0/7] APIC/IOAPIC cleanup

2010-08-23 Thread Avi Kivity
On 08/23/2010 12:07 AM, Anthony Liguori wrote: On 08/22/2010 02:44 PM, Avi Kivity wrote: No more MI diamond and all devices have DeviceStates. Coincidentally, it matches more closely how hardware works.. Well, I agree, but I honestly lost the context. How does this relate to the APIC

[Qemu-devel] Re: [PATCH] vl.c: set NULL upon deleting handlers in qemu_set_fd_handler2()

2010-08-23 Thread Corentin Chary
On Mon, Aug 23, 2010 at 2:55 AM, Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp wrote: Currently qemu_set_fd_handler2() is only setting ioh-deleted upon deleting.  This may cause a crash when a read handler calls qemu_set_fd_handler2() to delete handlers, but a write handler is still invoked

Re: [Qemu-devel] [PATCH] make -qmp stdio usable

2010-08-23 Thread Paolo Bonzini
On 08/22/2010 11:50 PM, Anthony Liguori wrote: On 08/11/2010 04:56 PM, Paolo Bonzini wrote: Currently -qmp stdio (or the equivalent -mon/-chardev combination) sets up the terminal attributes even though it does not go through readline to actually do I/O. As a result, echo is disabled and you

[Qemu-devel] Re: [qemu-kvm PATCH 0/3] small qemu-kvm cleanups

2010-08-23 Thread Paolo Bonzini
On 08/17/2010 01:29 PM, Avi Kivity wrote: On 08/12/2010 06:29 PM, Paolo Bonzini wrote: Nothing earth shattering. :) Paolo Bonzini (3): move kvm_set_irqfd to kvm-stub.c This touches kvm-all.c, so should be against uq/master. kvm_set_irqfd is not in upstream qemu, should I add it there even

[Qemu-devel] Re: [qemu-kvm PATCH 0/3] small qemu-kvm cleanups

2010-08-23 Thread Avi Kivity
On 08/23/2010 09:45 AM, Paolo Bonzini wrote: On 08/17/2010 01:29 PM, Avi Kivity wrote: On 08/12/2010 06:29 PM, Paolo Bonzini wrote: Nothing earth shattering. :) Paolo Bonzini (3): move kvm_set_irqfd to kvm-stub.c This touches kvm-all.c, so should be against uq/master. kvm_set_irqfd is

[Qemu-devel] Re: [PATCH 0/5] CODING_STYLE amendments

2010-08-23 Thread Paolo Bonzini
On 08/22/2010 08:56 PM, Blue Swirl wrote: On Sun, Aug 22, 2010 at 6:41 PM, Anthony Liguorianth...@codemonkey.ws wrote: On 08/22/2010 11:49 AM, Jes Sorensen wrote: While wasting time for historical reasons is certainly better than wasting time for the heck of it, it's arguably worse than

Re: [Qemu-devel] [PATCH 0/5] CODING_STYLE amendments

2010-08-23 Thread Jes Sorensen
On 08/22/10 20:35, malc wrote: On Sun, 22 Aug 2010, Blue Swirl wrote: What's the ultimate editor? I'd love to drop Emacs, which is annoying but does its job better than the others that I've tried. ed ed is for sissies, real developers use cat, echo, and sed. Jes

Re: [Qemu-devel] [PATCH 0/5] CODING_STYLE amendments

2010-08-23 Thread Jes Sorensen
On 08/22/10 20:13, Blue Swirl wrote: Well, consider for example mass braces conversion to the One Style, whichever that is. Would it be better to do it in one commit or multiple commits? If the latter, push all commits back-to-back or just one at a time now and then? At the extreme end, we

[Qemu-devel] qemu user mode emulation / callgraph

2010-08-23 Thread C K Kashyap
Hi I was wondering if qemu's user mode emulation could be tweaked to generate callgraph. Today was the first time I tried the user mode emulation - I ran into the below issue [u...@kashyap lab]$ qemu-x86_64 -cpu qemu64 ./a.out ERROR: ioctl(SNDCTL_DSP_MAPINBUF): target=0x80085013 host=0x80105013

Re: [Qemu-devel] [PATCH 0/5] CODING_STYLE amendments

2010-08-23 Thread Jes Sorensen
On 08/22/10 20:39, malc wrote: Disregarding my own stance on the braces, braces around single statement is actually helpful w.r.t. debugging imaging trying to set a break point on said singlesttement, plain impossible in following case: if (a) b; Oh there is no talk about suggesting we

Re: [Qemu-devel] [PATCH 0/5] CODING_STYLE amendments

2010-08-23 Thread Kevin Wolf
Am 22.08.2010 20:42, schrieb Anthony Liguori: On 08/22/2010 01:36 PM, malc wrote: But how would you do that? Drop the CODING_STYLE (and accept anything)? Switch to a new CODING_STYLE that is widely appreciated and so all bikeshedding will cease? Enforce current style? I would

Re: [Qemu-devel] [PATCH - V3] Port codes from qemu-kvm to support booting from SCSI disk image

2010-08-23 Thread Gerd Hoffmann
On 08/21/10 16:20, Kevin O'Connor wrote: On Fri, Aug 20, 2010 at 09:39:10AM -0500, Anthony Liguori wrote: On 08/20/2010 09:09 AM, Gerd Hoffmann wrote: Been there, tried that. It isn't *that* easy. The PCI ID in the option rom header doesn't match the PCI ID of the emulated lsi, so seabios

[Qemu-devel] Re: [PATCH v2 0/7] APIC/IOAPIC cleanup

2010-08-23 Thread Jan Kiszka
Avi Kivity wrote: On 08/23/2010 12:06 AM, Anthony Liguori wrote: On 08/22/2010 03:33 PM, Avi Kivity wrote: On 08/22/2010 11:03 PM, Anthony Liguori wrote: On 08/22/2010 02:44 PM, Avi Kivity wrote: No more MI diamond and all devices have DeviceStates. Coincidentally, it matches more closely

Re: [Qemu-devel] [PATCH V2] balloon: Don't try fetching info if machine is stopped

2010-08-23 Thread Daniel P. Berrange
On Sun, Aug 22, 2010 at 04:54:06PM -0500, Anthony Liguori wrote: On 08/19/2010 07:48 PM, Amit Shah wrote: If the machine is stopped and 'info balloon' is invoked, the monitor process just hangs waiting for info from the guest. Return the most recent balloon data in that case. See

[Qemu-devel] Re: [PATCH v2 0/7] APIC/IOAPIC cleanup

2010-08-23 Thread Avi Kivity
On 08/23/2010 12:09 PM, Jan Kiszka wrote: Okay, okay. But then there's a need explicitly not to instantiate it when modelling a 486 or lower. ...plus the need to instantiate it (as a dedicated device) when modeling 486 SMP. In short, if we want our model to be perfect, we have to fix

Re: [Qemu-devel] [PATCH 2/2] pci init: Check if devfn exceeding the max devices number supported on bus

2010-08-23 Thread Isaku Yamahata
How did you trigger the bug? I suppose parse_pci_devfn() in qdev-properties should check the error. Although I'm not objecting this patch itself, it's caller's bug. Just assert(devfn PCIBUS_MAX_DEVICES)? On Mon, Aug 23, 2010 at 01:56:31PM +0800, Ken CC wrote: Check before trying subindexing.

[Qemu-devel] [PATCH 00/15] v2: RFC xen device model support

2010-08-23 Thread Stefano Stabellini
Hi all, this is the second version of the patch series that adds xen device model support in qemu. This is the list of changes we made on top of the last version: - we modified the first patch to add support to the new libxc interface without removing support for the old one; - we converted the

[Qemu-devel] [PATCH 01/15] xen: Support new libxc calls from xen unstable.

2010-08-23 Thread stefano . stabellini
From: Anthony PERARD anthony.per...@citrix.com Update the libxenctrl calls in Qemu to use the new interface, otherwise Qemu wouldn't be able to build against new versions of the library. Signed-off-by: Anthony PERARD anthony.per...@citrix.com Signed-off-by: Stefano Stabellini

[Qemu-devel] [PATCH 03/15] xen: Add a new target to qemu: target-xen

2010-08-23 Thread stefano . stabellini
From: Anthony PERARD anthony.per...@citrix.com This patch adds a new Xen device model target to Qemu, called target-xen. The new target makes use of the previously introduced xen_machine_fv. In order to have a fully working Xen device model we still need functionalities introduced by the

[Qemu-devel] [PATCH 06/15] xen: Add the Xen platform pci device

2010-08-23 Thread stefano . stabellini
From: Anthony PERARD anthony.per...@citrix.com Introduce a new emulated PCI device, specific to fully virtualized Xen guests. The device is necessary for PV on HVM drivers to work. Signed-off-by: Anthony PERARD anthony.per...@citrix.com Signed-off-by: Stefano Stabellini

[Qemu-devel] [PATCH 02/15] xen: Add xen_machine_fv

2010-08-23 Thread stefano . stabellini
From: Anthony PERARD anthony.per...@citrix.com Add the Xen FV (Fully Virtualized) machine to Qemu; this is groundwork to add Xen device model support in Qemu. Signed-off-by: Anthony PERARD anthony.per...@citrix.com Signed-off-by: Stefano Stabellini stefano.stabell...@eu.citrix.com ---

[Qemu-devel] [PATCH 04/15] xen: xen_machine_fv, initialize xenctrl

2010-08-23 Thread stefano . stabellini
From: Anthony PERARD anthony.per...@citrix.com Introduce a xen_dm_init function that opens the xenctrl interface; call xen_dm_init from xen_machine_fv. Signed-off-by: Anthony PERARD anthony.per...@citrix.com Signed-off-by: Stefano Stabellini stefano.stabell...@eu.citrix.com --- Makefile.target

[Qemu-devel] [PATCH 11/15] xen: Introduce --enable-xen command options.

2010-08-23 Thread stefano . stabellini
From: Anthony PERARD anthony.per...@citrix.com This options will check if the target is build with Xen support. --- Makefile.target |3 +++ hw/xen.h|8 qemu-options.hx |9 + vl.c| 11 +++ 4 files changed, 31 insertions(+), 0 deletions(-)

[Qemu-devel] [PATCH 05/15] xen: add a 8259 Interrupt Controller

2010-08-23 Thread stefano . stabellini
From: Anthony PERARD anthony.per...@citrix.com Introduce a 8259 Interrupt Controller for target-xen; every set_irq call makes a Xen hypercall. Signed-off-by: Anthony PERARD anthony.per...@citrix.com Signed-off-by: Stefano Stabellini stefano.stabell...@eu.citrix.com --- Makefile.target

[Qemu-devel] [PATCH 07/15] xen: handle xenstore events

2010-08-23 Thread stefano . stabellini
From: Anthony PERARD anthony.per...@citrix.com Add an handler to process xenstore events. Signed-off-by: Anthony PERARD anthony.per...@citrix.com Signed-off-by: Stefano Stabellini stefano.stabell...@eu.citrix.com --- target-xen/xenstore.c | 30 +- 1 files changed,

[Qemu-devel] [PATCH 12/15] piix_pci: Introduces Xen specific call for irq.

2010-08-23 Thread stefano . stabellini
From: Anthony PERARD anthony.per...@citrix.com This patch introduces Xen specific call in piix_pci. The specific part for Xen is in write_config, set_irq and get_pirq. Signed-off-by: Anthony PERARD anthony.per...@citrix.com Signed-off-by: Stefano Stabellini stefano.stabell...@eu.citrix.com ---

[Qemu-devel] [PATCH 13/15] vl.c: Introduce getter for shutdown_requested and reset_requested.

2010-08-23 Thread stefano . stabellini
From: Anthony PERARD anthony.per...@citrix.com Introduce two functions qemu_shutdown_requested_get and qemu_reset_requested_get to get the value of shutdown/reset_requested without reset it. Signed-off-by: Anthony PERARD anthony.per...@citrix.com Signed-off-by: Stefano Stabellini

[Qemu-devel] [PATCH 08/15] xen: Read and write the state of the VM in xenstore

2010-08-23 Thread stefano . stabellini
From: Anthony PERARD anthony.per...@citrix.com Introduce functions to read and write the state of the VM in xenstore. Signed-off-by: Anthony PERARD anthony.per...@citrix.com Signed-off-by: Stefano Stabellini stefano.stabell...@eu.citrix.com --- hw/xen_machine_fv.c |9

[Qemu-devel] [PATCH 09/15] xen: Initialize event channels and io rings

2010-08-23 Thread stefano . stabellini
From: Anthony PERARD anthony.per...@citrix.com Open and bind event channels; map ioreq and buffered ioreq rings. Signed-off-by: Anthony PERARD anthony.per...@citrix.com Signed-off-by: Stefano Stabellini stefano.stabell...@eu.citrix.com --- hw/xen_machine_fv.c | 21 +++ target-xen/cpu.h

[Qemu-devel] [PATCH 14/15] xen: destroy the VM when shutdown is requested

2010-08-23 Thread stefano . stabellini
From: Anthony PERARD anthony.per...@citrix.com Handle shutdown and reset requests in helper.c. Signed-off-by: Anthony PERARD anthony.per...@citrix.com Signed-off-by: Stefano Stabellini stefano.stabell...@eu.citrix.com --- target-xen/helper.c | 15 +++ 1 files changed, 15

[Qemu-devel] [PATCH 10/15] xen: Introduce the Xen mapcache

2010-08-23 Thread stefano . stabellini
From: Anthony PERARD anthony.per...@citrix.com Introduce a mapcache to handle the 64bit address space of the guest from a 32bit userland process (Qemu). The mapcache maps chucks of guest memory on demand, unmaps them when they are not needed anymore. Signed-off-by: Anthony PERARD

Re: [Qemu-devel] [PATCH 01/14] trace: Add trace-events file for declaring trace events

2010-08-23 Thread Stefan Hajnoczi
On Sun, Aug 22, 2010 at 04:38:36PM -0500, Anthony Liguori wrote: On 08/12/2010 05:36 AM, Stefan Hajnoczi wrote: +linetoh_nop() +{ +local name args +name=$(get_name $1) +args=$(get_args $1) + +# Define an empty function for the trace event +catEOF +static inline void

[Qemu-devel] [PATCH 15/15] xen: Add a Xen specific ACPI Implementation to target-xen

2010-08-23 Thread stefano . stabellini
From: Anthony PERARD anthony.per...@citrix.com Xen currently uses a different BIOS (hvmloader + rombios) therefore the Qemu acpi_piix4 implementation wouldn't work correctly with Xen. We plan on fixing this properly but at the moment we are just adding a new Xen specific acpi_piix4

Re: [Qemu-devel] [PATCH 06/14] trace: Trace entry point of balloon request handler

2010-08-23 Thread Stefan Hajnoczi
On Sun, Aug 22, 2010 at 04:41:44PM -0500, Anthony Liguori wrote: ram_addr_t is not necessarily an unsigned long. It's actually a uint64_t. Integer promotion should handle this in most cases but having the definition in two different places worries me a bit. I thought it is unsigned long:

[Qemu-devel] [Bug 595438] Re: KVM segmentation fault, using SCSI+writeback and linux 2.4 guest

2010-08-23 Thread Thierry Carrez
** Changed in: qemu-kvm (Ubuntu Lucid) Assignee: (unassigned) = Thierry Carrez (ttx) -- KVM segmentation fault, using SCSI+writeback and linux 2.4 guest https://bugs.launchpad.net/bugs/595438 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed

Re: [Qemu-devel] Re: [PATCH v2 0/7] APIC/IOAPIC cleanup

2010-08-23 Thread Avi Kivity
On 08/23/2010 01:11 PM, Alexander Graf wrote: On 23.08.2010, at 11:25, Avi Kivity wrote: On 08/23/2010 12:09 PM, Jan Kiszka wrote: Okay, okay. But then there's a need explicitly not to instantiate it when modelling a 486 or lower. ...plus the need to instantiate it (as a dedicated device)

Re: [Qemu-devel] Re: [PATCH v2 0/7] APIC/IOAPIC cleanup

2010-08-23 Thread Alexander Graf
On 23.08.2010, at 11:25, Avi Kivity wrote: On 08/23/2010 12:09 PM, Jan Kiszka wrote: Okay, okay. But then there's a need explicitly not to instantiate it when modelling a 486 or lower. ...plus the need to instantiate it (as a dedicated device) when modeling 486 SMP. In short, if we

Re: [Qemu-devel] Re: [PATCH v2 0/7] APIC/IOAPIC cleanup

2010-08-23 Thread Alexander Graf
On 23.08.2010, at 12:15, Avi Kivity wrote: On 08/23/2010 01:11 PM, Alexander Graf wrote: On 23.08.2010, at 11:25, Avi Kivity wrote: On 08/23/2010 12:09 PM, Jan Kiszka wrote: Okay, okay. But then there's a need explicitly not to instantiate it when modelling a 486 or lower. ...plus the

Re: [Qemu-devel] [PATCH 14/14] trace: Add user documentation

2010-08-23 Thread Stefan Hajnoczi
On Sun, Aug 22, 2010 at 04:47:17PM -0500, Anthony Liguori wrote: Please add some information about the restrictions on types. Clearly, you can't specify just any type in the trace file so what set of types are allowed? Sure, will fix in v2. Stefan

Re: [Qemu-devel] Re: [PATCH v2 0/7] APIC/IOAPIC cleanup

2010-08-23 Thread Avi Kivity
On 08/23/2010 01:18 PM, Alexander Graf wrote: I certainly don't, but others may. However, the problem remains: every time real hardware doesn't fit our pretty model we'll drop support for that hardware? No, every time real hardware doesn't fit out pretty model and nobody really cares, we

[Qemu-devel] Re: Introduce a new 'connected' xendev op called when Connected.

2010-08-23 Thread John Haxby
Any reason why this (and its sister patch) were never picked up? jch On 27/07/10 15:54, Stefano Stabellini wrote: Any comments? On Wed, 21 Jul 2010, Stefano Stabellini wrote: From: John Haxbyjohn.ha...@oracle.com Introduce a new 'connected' xendev op called when Connected. Rename the

[Qemu-devel] [PATCH 3/3] switch vmware_vga to pci vgabios

2010-08-23 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/vmware_vga.c |7 +-- 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/hw/vmware_vga.c b/hw/vmware_vga.c index 12bff48..682f287 100644 --- a/hw/vmware_vga.c +++ b/hw/vmware_vga.c @@ -114,14 +114,12 @@ struct

[Qemu-devel] [PATCH 0/3] use new vgabios.

2010-08-23 Thread Gerd Hoffmann
Hi, This patch series will put the new vgabios (patches posted to the list last week) into use for stdvga and vmware_vga. For obvious reasons it depends on the new vgabios binaries being present, i.e. vgabios patches being committed to vgabios.git, subtree being updated and vgabios binaries

[Qemu-devel] [PATCH 2/3] switch stdvga to pci vgabios

2010-08-23 Thread Gerd Hoffmann
Make stdvga provide the new vgabios binary (with pcibios support) using the PCI option rom bar. Seabios will happily load it from there. The new vga bios will also lookup the framebuffer address in pci config space, so the magic bochs lfb @ 0xe000 is not needed any more - zap it. Without

[Qemu-devel] [PATCH 1/3] Add new vgabios binaries to blobs list.

2010-08-23 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- Makefile |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f95cc2f..867e038 100644 --- a/Makefile +++ b/Makefile @@ -154,8 +154,9 @@ ar de en-us fi fr-be hr it lv nl

Re: [Qemu-devel] [PATCH 0/5] CODING_STYLE amendments

2010-08-23 Thread Markus Armbruster
Avi Kivity a...@redhat.com writes: On 08/22/2010 07:40 PM, Jes Sorensen wrote: I totally agree with Markus that it seems like wasted effort to come up with new tools and having to maintain them when there are good ones out there like the ones from the Linux kernel. scripts/Lindent is

Re: [Qemu-devel] [PATCH 0/5] CODING_STYLE amendments

2010-08-23 Thread Avi Kivity
On 08/23/2010 02:01 PM, Markus Armbruster wrote: Avi Kivitya...@redhat.com writes: On 08/22/2010 07:40 PM, Jes Sorensen wrote: I totally agree with Markus that it seems like wasted effort to come up with new tools and having to maintain them when there are good ones out there like the

[Qemu-devel] Re: [PATCH 15/15] xen: Add a Xen specific ACPI Implementation to target-xen

2010-08-23 Thread Juan Quintela
stefano.stabell...@eu.citrix.com wrote: From: Anthony PERARD anthony.per...@citrix.com Xen currently uses a different BIOS (hvmloader + rombios) therefore the Qemu acpi_piix4 implementation wouldn't work correctly with Xen. We plan on fixing this properly but at the moment we are just adding

[Qemu-devel] Re: [PATCH 03/15] xen: Add a new target to qemu: target-xen

2010-08-23 Thread Juan Quintela
stefano.stabell...@eu.citrix.com wrote: From: Anthony PERARD anthony.per...@citrix.com This patch adds a new Xen device model target to Qemu, called target-xen. The new target makes use of the previously introduced xen_machine_fv. In order to have a fully working Xen device model we still

Re: [Qemu-devel] [PATCH] qdev: Reset hotplugged devices

2010-08-23 Thread Avi Kivity
On 08/20/2010 12:00 PM, Markus Armbruster wrote: Alex Williamsonalex.william...@redhat.com writes: Several devices rely on their reset() function being called to initialize device state, e1000 and rtl8139 in particular. When the device is hot added, the reset doesn't occur, often leaving

Re: [Qemu-devel] [PATCH] qdev: Reset hotplugged devices

2010-08-23 Thread Anthony Liguori
On 08/23/2010 07:00 AM, Avi Kivity wrote: Off-topic, but what's the reason for dev-hotplugged's existence? A device is either plugged or not, it is either hotpluggable or not, but is there a way to tell, from looking at a plugged device, whether it has been hotplugged in the past? AFAICT it

Re: [Qemu-devel] Re: Introduce a new 'connected' xendev op called when Connected.

2010-08-23 Thread Anthony Liguori
On 08/23/2010 05:21 AM, John Haxby wrote: Any reason why this (and its sister patch) were never picked up? jch It was likely missed originally because there wasn't a [PATCH] in the subject. Can you resubmit? It's not obvious to me what it's sister patch is so I'd suggest resubmitting

[Qemu-devel] Re: [PATCH 15/15] xen: Add a Xen specific ACPI Implementation to target-xen

2010-08-23 Thread Stefano Stabellini
On Mon, 23 Aug 2010, Juan Quintela wrote: +register_savevm(NULL, gpe, 0, 1, gpe_save, gpe_load, s); Please port this to VMSTATE. If possible (i.e. not problems with backwards compatibility), something like: +for ( i = 0; i ACPI_GPE0_BLK_LEN / 2; i++ ) { +

Re: [Qemu-devel] [PATCH 06/14] trace: Trace entry point of balloon request handler

2010-08-23 Thread Anthony Liguori
On 08/23/2010 05:10 AM, Stefan Hajnoczi wrote: On Sun, Aug 22, 2010 at 04:41:44PM -0500, Anthony Liguori wrote: ram_addr_t is not necessarily an unsigned long. It's actually a uint64_t. Integer promotion should handle this in most cases but having the definition in two different places

Re: [Qemu-devel] [PATCH v2 0/7] APIC/IOAPIC cleanup

2010-08-23 Thread Anthony Liguori
On 08/23/2010 12:46 AM, Avi Kivity wrote: On 08/23/2010 12:02 AM, Anthony Liguori wrote: On 08/22/2010 03:28 PM, Avi Kivity wrote: On 08/20/2010 09:38 PM, Anthony Liguori wrote: While that might be useful, I don't quite see what makes CPUs so special that they need to be kept out of qdev.

[Qemu-devel] Re: [PATCH] qdev: Reset hotplugged devices

2010-08-23 Thread Anthony Liguori
On 08/23/2010 06:25 AM, Paolo Bonzini wrote: On 08/20/2010 08:12 PM, Anthony Liguori wrote: +/* Returns false to terminate walk; true to continue */ +typedef int (qdev_walkerfn)(DeviceState *dev, void *opaque); + Since you're introducing qbus_walk_children, I suggest a different interface:

Re: [Qemu-devel] [PATCH v2 0/7] APIC/IOAPIC cleanup

2010-08-23 Thread Avi Kivity
On 08/23/2010 04:23 PM, Anthony Liguori wrote: This is really a fundamental discussion. If you look closely at qdev in it's current form, what it actually models is a device with GPIO input and output whereas the GPIO input and output correspond to qemu_irqs which really model pins that can

Re: [Qemu-devel] [PATCH v2 0/7] APIC/IOAPIC cleanup

2010-08-23 Thread Anthony Liguori
On 08/23/2010 08:42 AM, Avi Kivity wrote: GPIO is just one way for a device to talk, same as (*bus)_phys_memory_rw() or its netdev or its chardev or its timers. It doesn't need to have special status within DeviceState, but it doesn't hurt so much that I can tell. Everything extra hurts

Re: [Qemu-devel] [PATCH 0/5] CODING_STYLE amendments

2010-08-23 Thread Jes Sorensen
On 08/22/10 20:42, Anthony Liguori wrote: On 08/22/2010 01:36 PM, malc wrote: But how would you do that? Drop the CODING_STYLE (and accept anything)? Switch to a new CODING_STYLE that is widely appreciated and so all bikeshedding will cease? Enforce current style? I would suggest

Re: [Qemu-devel] [PATCH 0/5] CODING_STYLE amendments

2010-08-23 Thread Jes Sorensen
On 08/22/10 22:39, Avi Kivity wrote: On 08/22/2010 10:44 PM, malc wrote: There is the problem that some patch submitters are reminded of CODING_STYLE while others aren't. Some don't need to be reminded but they are not part of the problem. And to this i fully subscribe. I agree. From

Re: [Qemu-devel] [PATCH v2 0/7] APIC/IOAPIC cleanup

2010-08-23 Thread Avi Kivity
On 08/23/2010 04:48 PM, Anthony Liguori wrote: The fundamental issue is: every function (minus trivial ones) in the device models code should have a state reference. That state reference should inherit from a DeviceState. If this statement isn't true, then the device has been modelled in

Re: [Qemu-devel] [PATCH 0/5] CODING_STYLE amendments

2010-08-23 Thread Avi Kivity
On 08/23/2010 04:55 PM, Jes Sorensen wrote: Well with the inconsistency we have now, what is the right iron fist to apply? Demand the code is consistent with the file you edit or that it's consistent with whats in CODING_STYLE, even if it means that what you apply is completely different to

Re: [Qemu-devel] [PATCH 0/5] CODING_STYLE amendments

2010-08-23 Thread Jes Sorensen
On 08/23/10 16:03, Avi Kivity wrote: On 08/23/2010 04:55 PM, Jes Sorensen wrote: Well with the inconsistency we have now, what is the right iron fist to apply? Demand the code is consistent with the file you edit or that it's consistent with whats in CODING_STYLE, even if it means that what

Re: [Qemu-devel] [PATCH 0/5] CODING_STYLE amendments

2010-08-23 Thread Avi Kivity
On 08/23/2010 05:07 PM, Jes Sorensen wrote: On 08/23/10 16:03, Avi Kivity wrote: On 08/23/2010 04:55 PM, Jes Sorensen wrote: Well with the inconsistency we have now, what is the right iron fist to apply? Demand the code is consistent with the file you edit or that it's consistent with whats

Re: [Qemu-devel] [PATCH 0/5] CODING_STYLE amendments

2010-08-23 Thread john cooper
Jes Sorensen wrote: On 08/22/10 20:39, malc wrote: Disregarding my own stance on the braces, braces around single statement is actually helpful w.r.t. debugging imaging trying to set a break point on said singlesttement, plain impossible in following case: if (a) b; Oh there is

Re: [Qemu-devel] [PATCH 0/5] CODING_STYLE amendments

2010-08-23 Thread john cooper
Jes Sorensen wrote: On 08/22/10 20:35, malc wrote: On Sun, 22 Aug 2010, Blue Swirl wrote: What's the ultimate editor? I'd love to drop Emacs, which is annoying but does its job better than the others that I've tried. ed ed is for sissies, real developers use cat, echo, and sed.

Re: [Qemu-devel] [PATCH v2 0/7] APIC/IOAPIC cleanup

2010-08-23 Thread Anthony Liguori
On 08/23/2010 09:00 AM, Avi Kivity wrote: On 08/23/2010 04:48 PM, Anthony Liguori wrote: The fundamental issue is: every function (minus trivial ones) in the device models code should have a state reference. That state reference should inherit from a DeviceState. If this statement isn't

Re: [Qemu-devel] [PATCH] fat_chksum(): fix access above array bounds

2010-08-23 Thread Kevin Wolf
Am 22.08.2010 00:47, schrieb Loïc Minier: Signed-off-by: Loïc Minier loic.min...@linaro.org Thanks, applied to the block patch. How did you find this one? From a quick look it seems that the pattern that name is intentionally overflowed to access extension is still there in some places. So if

Re: [Qemu-devel] [PATCH v2 0/7] APIC/IOAPIC cleanup

2010-08-23 Thread Anthony Liguori
On 08/23/2010 09:32 AM, Avi Kivity wrote: Is bad? The answer would depend on whether OtherState implemented methods or not. If OtherState has no methods, it's fine. If it has methods, it's bad. I don't see why. As long as you can manipulate all of MyDevice's state via MyDeviceState

Re: [Qemu-devel] [PATCH v2 0/7] APIC/IOAPIC cleanup

2010-08-23 Thread Avi Kivity
On 08/23/2010 05:26 PM, Anthony Liguori wrote: On 08/23/2010 09:00 AM, Avi Kivity wrote: On 08/23/2010 04:48 PM, Anthony Liguori wrote: The fundamental issue is: every function (minus trivial ones) in the device models code should have a state reference. That state reference should inherit

Re: [Qemu-devel] [PATCH] fat_chksum(): fix access above array bounds

2010-08-23 Thread Loïc Minier
On Mon, Aug 23, 2010, Kevin Wolf wrote: How did you find this one? From a quick look it seems that the pattern that name is intentionally overflowed to access extension is still there in some places. So if this caused some real bug, I think we'll have to fix the other ones, too. Compiler

Re: [Qemu-devel] [PATCH v2 0/7] APIC/IOAPIC cleanup

2010-08-23 Thread Markus Armbruster
You lost me. A few messages upthread. What's the *practical* problem again?

Re: [Qemu-devel] [PATCH v2 0/7] APIC/IOAPIC cleanup

2010-08-23 Thread Avi Kivity
On 08/23/2010 05:47 PM, Anthony Liguori wrote: Devices can contain references to structs and objects. If a Device contains a reference to an object, the object should be stored in a BusState which is a container of Devices. Therefore, the object should inherit from Device. I disagree.

[Qemu-devel] [Bug 621950] Re: qemu not able to run 64 bit OS when -enable-kvm is used with a 64 bit processor

2010-08-23 Thread bhasker
I tried this

Re: [Qemu-devel] [PATCH v2 0/7] APIC/IOAPIC cleanup

2010-08-23 Thread Anthony Liguori
On 08/23/2010 10:14 AM, Avi Kivity wrote: On 08/23/2010 05:47 PM, Anthony Liguori wrote: Devices can contain references to structs and objects. If a Device contains a reference to an object, the object should be stored in a BusState which is a container of Devices. Therefore, the object

Re: [Qemu-devel] [PATCH v2 0/7] APIC/IOAPIC cleanup

2010-08-23 Thread Anthony Liguori
On 08/23/2010 10:10 AM, Markus Armbruster wrote: You lost me. A few messages upthread. What's the *practical* problem again? CPU hotplug adds a local APIC to Sysbus but Sysbus does not allow hot plug. I believe the right short term way to fix this is to take the local APIC off of

[Qemu-devel] Re: [qemu-kvm PATCH 0/3] small qemu-kvm cleanups

2010-08-23 Thread Cam Macdonell
On Mon, Aug 23, 2010 at 12:49 AM, Avi Kivity a...@redhat.com wrote:  On 08/23/2010 09:45 AM, Paolo Bonzini wrote: On 08/17/2010 01:29 PM, Avi Kivity wrote: On 08/12/2010 06:29 PM, Paolo Bonzini wrote: Nothing earth shattering. :) Paolo Bonzini (3): move kvm_set_irqfd to kvm-stub.c This

Re: [Qemu-devel] [PATCH v2 0/7] APIC/IOAPIC cleanup

2010-08-23 Thread Markus Armbruster
Anthony Liguori anth...@codemonkey.ws writes: On 08/23/2010 10:10 AM, Markus Armbruster wrote: You lost me. A few messages upthread. What's the *practical* problem again? CPU hotplug adds a local APIC to Sysbus but Sysbus does not allow hot plug. I believe the right short term way

Re: [Qemu-devel] [PATCH v2 0/7] APIC/IOAPIC cleanup

2010-08-23 Thread Anthony Liguori
On 08/23/2010 12:36 PM, Markus Armbruster wrote: Anthony Liguorianth...@codemonkey.ws writes: On 08/23/2010 10:10 AM, Markus Armbruster wrote: You lost me. A few messages upthread. What's the *practical* problem again? CPU hotplug adds a local APIC to Sysbus but Sysbus

[Qemu-devel] [Bug 621950] Re: qemu not able to run 64 bit OS when -enable-kvm is used with a 64 bit processor

2010-08-23 Thread Anthony Liguori
You're host kernel is 64-bit? Please show the full command line you use to launch qemu. -- qemu not able to run 64 bit OS when -enable-kvm is used with a 64 bit processor https://bugs.launchpad.net/bugs/621950 You received this bug notification because you are a member of qemu- devel-ml, which

[Qemu-devel] Re: [PATCH v2 0/7] APIC/IOAPIC cleanup

2010-08-23 Thread Jan Kiszka
Anthony Liguori wrote: On 08/23/2010 10:10 AM, Markus Armbruster wrote: You lost me. A few messages upthread. What's the *practical* problem again? CPU hotplug adds a local APIC to Sysbus but Sysbus does not allow hot plug. I believe the right short term way to fix this is to take

[Qemu-devel] Re: [PATCH v2 0/7] APIC/IOAPIC cleanup

2010-08-23 Thread Anthony Liguori
On 08/23/2010 01:24 PM, Jan Kiszka wrote: Anthony Liguori wrote: On 08/23/2010 10:10 AM, Markus Armbruster wrote: You lost me. A few messages upthread. What's the *practical* problem again? CPU hotplug adds a local APIC to Sysbus but Sysbus does not allow hot plug. I

[Qemu-devel] [Bug 621950] Re: qemu not able to run 64 bit OS when -enable-kvm is used with a 64 bit processor

2010-08-23 Thread agraf
What does file `which qemu-system-x86_64` say? -- qemu not able to run 64 bit OS when -enable-kvm is used with a 64 bit processor https://bugs.launchpad.net/bugs/621950 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU:

[Qemu-devel] [PATCH 0/5] Add S390 hotplug add support

2010-08-23 Thread Alexander Graf
Hey guys, this patch set adds support for hotplug add on S390. Apparently it's the first non-x86 platform receiving so much love in Qemu, so I've stumbled over some very basic #if defined(TARGET_I386) cases that just shouldn't be there. I'm open for suggestions, comments, improvements, etc. on

[Qemu-devel] [PATCH 2/5] [S390] Increase amount of virtio pages

2010-08-23 Thread Alexander Graf
While booting a recent guest, I realized that we're know spawning 2x 64 vrings. Each vring occupies 3 * PAGE_SIZE size and we only reserved 256 * PAGE_SIZE bytes where some additional meta info also has to fit in. This is obviously too little. So let's increase the amount of reserved pages to a

[Qemu-devel] [PATCH 4/5] Add generic drive hotplugging

2010-08-23 Thread Alexander Graf
The monitor command for hotplugging is in i386 specific code. This is just plain wrong, as S390 just learned how to do hotplugging too and needs to get drives for that. So let's add a generic copy to generic code that handles drive_add in a way that doesn't have pci dependencies. I'm not fully

[Qemu-devel] [PATCH 1/5] [S390] Add hotplug support

2010-08-23 Thread Alexander Graf
I just submitted a few patches that enable the s390 virtio bus to receive a hotplug add event. This patch implements the qemu side of it, so that new hotplug events can be submitted to the guest. Signed-off-by: Alexander Graf ag...@suse.de --- hw/s390-virtio-bus.c |9 +

[Qemu-devel] [PATCH 3/5] Compile device-hotplug on all targets

2010-08-23 Thread Alexander Graf
All guest targets could potentially implement hotplugging. With the next patches in this set I will also reflect this in the monitor interface. So let's always compile it in. It shouldn't hurt. Signed-off-by: Alexander Graf ag...@suse.de --- Makefile.target |5 - 1 files changed, 4

[Qemu-devel] [PATCH 5/5] Expose drive_add on all architectures

2010-08-23 Thread Alexander Graf
All architectures can now use drive_add on the monitor. This of course does not mean that there is hotplug support for the specific platform, so in order to actually make use of the new drives you still need to have a hotplug capable device. Signed-off-by: Alexander Graf ag...@suse.de ---

Re: [Qemu-devel] [PATCH 4/5] Add generic drive hotplugging

2010-08-23 Thread Anthony Liguori
On 08/23/2010 05:02 PM, Alexander Graf wrote: The monitor command for hotplugging is in i386 specific code. This is just plain wrong, as S390 just learned how to do hotplugging too and needs to get drives for that. So let's add a generic copy to generic code that handles drive_add in a way that

Re: [Qemu-devel] [PATCH 4/5] Add generic drive hotplugging

2010-08-23 Thread Alexander Graf
On 24.08.2010, at 00:21, Anthony Liguori wrote: On 08/23/2010 05:02 PM, Alexander Graf wrote: The monitor command for hotplugging is in i386 specific code. This is just plain wrong, as S390 just learned how to do hotplugging too and needs to get drives for that. So let's add a generic

[Qemu-devel] KVM call agenda for August 24

2010-08-23 Thread Chris Wright
Please send in any agenda items you are interested in covering. thanks, -chris

Re: [Qemu-devel] [PATCH 4/5] Add generic drive hotplugging

2010-08-23 Thread Alexander Graf
On 24.08.2010, at 00:23, Alexander Graf wrote: On 24.08.2010, at 00:21, Anthony Liguori wrote: On 08/23/2010 05:02 PM, Alexander Graf wrote: The monitor command for hotplugging is in i386 specific code. This is just plain wrong, as S390 just learned how to do hotplugging too and needs to

Re: [Qemu-devel] [PATCH 4/5] Add generic drive hotplugging

2010-08-23 Thread Anthony Liguori
On 08/23/2010 05:45 PM, Alexander Graf wrote: Device_add already works with this set and only required minor changes the s390 specific code. So that part was pretty slick :). The part that didn't work was the drive_add one. What is blockdev_add supposed to be? drive_add without IF_SCSI?

Re: [Qemu-devel] [PATCH 4/5] Add generic drive hotplugging

2010-08-23 Thread Alexander Graf
On 24.08.2010, at 00:50, Anthony Liguori wrote: On 08/23/2010 05:45 PM, Alexander Graf wrote: Device_add already works with this set and only required minor changes the s390 specific code. So that part was pretty slick :). The part that didn't work was the drive_add one. What is

[Qemu-devel] [PATCH] Introduce NBD named exports.

2010-08-23 Thread Laurent Vivier
This patch allows to connect Qemu using NBD protocol to an nbd-server using named exports. For instance, if on the host isoserver, in /etc/nbd-server/config, you have: [generic] [debian-500-ppc-netinst] exportname = /ISO/debian-500-powerpc-netinst.iso [Fedora-10-ppc-netinst]

Re: [Qemu-devel] [PATCH 2/2] pci init: Check if devfn exceeding the max devices number supported on bus

2010-08-23 Thread Ken CC
On Mon, Aug 23, 2010 at 06:56:56PM +0900, Isaku Yamahata wrote: How did you trigger the bug? I suppose parse_pci_devfn() in qdev-properties should check the error. Although I'm not objecting this patch itself, it's caller's bug. Just assert(devfn PCIBUS_MAX_DEVICES)? assign pci addr 30,

  1   2   >