Re: [Qemu-devel] [PATCHv5 01/15] Introduce fw_name field to DeviceInfo structure.

2010-11-16 Thread Isaku Yamahata
On Mon, Nov 15, 2010 at 04:30:55PM +0200, Gleb Natapov wrote: diff --git a/hw/piix_pci.c b/hw/piix_pci.c index b5589b9..38f9d9e 100644 --- a/hw/piix_pci.c +++ b/hw/piix_pci.c @@ -365,6 +365,7 @@ static PCIDeviceInfo i440fx_info[] = { static SysBusDeviceInfo i440fx_pcihost_info = {

[Qemu-devel] How to debug BIOS with Qemu?

2010-11-16 Thread calvino
Hi, I'm a newbie to qemu and recently I was trying debugging BIOS(VGA BIOS in qemu and maybe the bios part in qemu from bochs project) and I found the guide in the bois dir seemed to be a bit old and didn't work. J had made the lasted bios.bin with symbol but how to debug it on earth? Looking at

[Qemu-devel] [PATCH v9 3/8] pci: clean up of pci status register

2010-11-16 Thread Isaku Yamahata
This patch refine the initialization/reset of pci status registers. Signed-off-by: Isaku Yamahata yamah...@valinux.co.jp --- hw/pci.c | 41 +++-- 1 files changed, 39 insertions(+), 2 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index 52fe655..fba765b

[Qemu-devel] [PATCH v9 7/8] x3130/upstream: support aer

2010-11-16 Thread Isaku Yamahata
add aer support. Signed-off-by: Isaku Yamahata yamah...@valinux.co.jp --- Changes v8 - v9 - error path in initialization. --- hw/xio3130_upstream.c | 33 - 1 files changed, 24 insertions(+), 9 deletions(-) diff --git a/hw/xio3130_upstream.c

[Qemu-devel] [PATCH v9 0/8] pcie port switch emulators

2010-11-16 Thread Isaku Yamahata
Now v9 of pcie aer patch series. I dropped qmp patch to inject aer error because it will depends on Gleb's openfirmware path patches. Once his patches are merged, the glue patch will be respined. Patch description: The patch series adds pcie/aer functionality to the pcie port emulators and adds

[Qemu-devel] [PATCH v9 1/8] pci: revise pci command register initialization

2010-11-16 Thread Isaku Yamahata
This patch cleans up command register initialization with comments. It also fixes the initialization of io/memory bit of command register. Those bits for type 1 device is RW. Those bits for type 0 device is RO = 0 if it has no io/memory BAR RW if it has io/memory BAR Signed-off-by: Isaku

[Qemu-devel] [PATCH v9 2/8] pci: fix accesses to pci status register

2010-11-16 Thread Isaku Yamahata
pci status register is 16 bit, not 8 bit. So use helper function to manipulate status register. Signed-off-by: Isaku Yamahata yamah...@valinux.co.jp --- hw/pci.c | 21 + 1 files changed, 13 insertions(+), 8 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index

[Qemu-devel] [PATCH v9 8/8] x3130/downstream: support aer.

2010-11-16 Thread Isaku Yamahata
add aer support. Signed-off-by: Isaku Yamahata yamah...@valinux.co.jp --- Changes v8 - v9: - error path in initialization --- hw/xio3130_downstream.c | 43 +-- 1 files changed, 33 insertions(+), 10 deletions(-) diff --git a/hw/xio3130_downstream.c

[Qemu-devel] [PATCH v9 6/8] ioh3420: support aer

2010-11-16 Thread Isaku Yamahata
Add aer support. Signed-off-by: Isaku Yamahata yamah...@valinux.co.jp --- Changes v8 - v9: - error path in initialization --- hw/ioh3420.c | 80 ++--- 1 files changed, 70 insertions(+), 10 deletions(-) diff --git a/hw/ioh3420.c

[Qemu-devel] [PATCH v9 4/8] pcie_regs.h: more constants

2010-11-16 Thread Isaku Yamahata
remove unnecessary sizeof. Signed-off-by: Isaku Yamahata yamah...@valinux.co.jp --- hw/pcie_regs.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/pcie_regs.h b/hw/pcie_regs.h index 3461a1b..4d123d9 100644 --- a/hw/pcie_regs.h +++ b/hw/pcie_regs.h @@ -94,7 +94,9 @@

[Qemu-devel] [PATCH 1/2] [V2] virtio-9p: Use chroot to safely access files in passthrough model

2010-11-16 Thread M. Mohan Kumar
In passthrough security model, following symbolic links in the server side could result in accessing files outside guest's export path.This could happen under two conditions: 1) If a modified guest kernel is sending symbolic link as part of the file path and when resolving that symbolic link at

[Qemu-devel] [PATCH 2/2] [V2] virtio-9p: Use chroot interface in passthrough model

2010-11-16 Thread M. Mohan Kumar
Make use of chroot interfaces for passthrough security model to fix the vulnerability in following symbolic links. Signed-off-by: M. Mohan Kumar mo...@in.ibm.com --- hw/virtio-9p-local.c | 294 ++--- 1 files changed, 228 insertions(+), 66 deletions(-)

Re: [Qemu-devel] [PATCHv5 01/15] Introduce fw_name field to DeviceInfo structure.

2010-11-16 Thread Gleb Natapov
On Tue, Nov 16, 2010 at 05:09:35PM +0900, Isaku Yamahata wrote: On Mon, Nov 15, 2010 at 04:30:55PM +0200, Gleb Natapov wrote: diff --git a/hw/piix_pci.c b/hw/piix_pci.c index b5589b9..38f9d9e 100644 --- a/hw/piix_pci.c +++ b/hw/piix_pci.c @@ -365,6 +365,7 @@ static PCIDeviceInfo

[Qemu-devel] Re: KVM call agenda for Nov 16

2010-11-16 Thread Avi Kivity
On 11/15/2010 10:20 PM, Chris Wright wrote: Please send in any agenda items you are interested in covering. qemu.git master and stable-0.13 stalled? -- error compiling committee.c: too many arguments to function

[Qemu-devel] Re: [PATCH] add a command line option to specify the interface to send multicast packets on

2010-11-16 Thread Paolo Bonzini
On 11/15/2010 10:34 PM, Mike Ryan wrote: Given that it is unavailable on at least one platform (mingw32) it sounds like it should be detected in configure. However configure doesn't appear to be generated from autoconf/automake. Is it a custom build system? Yes, but I think #ifndef _WIN32 is

Re: [Qemu-devel] [PATCH 2/4] virtio: Convert fprintf() to error_report()

2010-11-16 Thread Markus Armbruster
Worth mentioning that this fixes several messages lacking newline.

[Qemu-devel] Is there any approach to setup guest only network

2010-11-16 Thread 郭沐錫
Dear all I have run QEMU with debian I can use TUN/TAP to connect the internet or host when single QEMU However when I run two QEMU with two qemu-ifup and different address (on the same host) at the same time, the second QEMU cannot connect to host... Is there are any approach to setup guest

[Qemu-devel] Re: [PATCH 0/6] Save state error handling (kill off no_migrate)

2010-11-16 Thread Juan Quintela
Alex Williamson alex.william...@redhat.com wrote: Our code paths for saving or migrating a VM are full of functions that return void, leaving no opportunity for a device to cancel a migration, either from error or incompatibility. The ivshmem driver attempted to solve this with a no_migrate

[Qemu-devel] Re: [PATCHv2 1/2] char: separate device and system fd handlers

2010-11-16 Thread Juan Quintela
Michael S. Tsirkin m...@redhat.com wrote: Create separate lists for system and device fd handlers. Device handlers will not run while vm is stopped. By default all fds are assumed system so they will keep running as before. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- qemu-char.h

[Qemu-devel] Re: [PATCH 1/2] [V2] virtio-9p: Use chroot to safely access files in passthrough model

2010-11-16 Thread Stefan Hajnoczi
On Tue, Nov 16, 2010 at 8:54 AM, M. Mohan Kumar mo...@in.ibm.com wrote: +static int read_openrequest(int sockfd, V9fsOpenRequest *request) +{ +    int bytes, retval; +    retval = recv(sockfd, request, sizeof(request-data), 0); +    if (retval = 0) { +        return -1; +    } +    bytes =

[Qemu-devel] Re: [PATCH v9 1/8] pci: revise pci command register initialization

2010-11-16 Thread Michael S. Tsirkin
On Tue, Nov 16, 2010 at 05:26:05PM +0900, Isaku Yamahata wrote: This patch cleans up command register initialization with comments. It also fixes the initialization of io/memory bit of command register. Those bits for type 1 device is RW. Those bits for type 0 device is RO = 0 if it has

[Qemu-devel] Re: [PATCH v9 2/8] pci: fix accesses to pci status register

2010-11-16 Thread Michael S. Tsirkin
On Tue, Nov 16, 2010 at 05:26:06PM +0900, Isaku Yamahata wrote: pci status register is 16 bit, not 8 bit. So use helper function to manipulate status register. Signed-off-by: Isaku Yamahata yamah...@valinux.co.jp At least the subject is wrong: the relevant bit is in the low byte. So the code

Re: [Qemu-devel] Is there any approach to setup guest only network

2010-11-16 Thread Mulyadi Santosa
On Tue, Nov 16, 2010 at 17:11, 郭沐錫 maxgreg13...@gmail.com wrote: Dear all I have run QEMU with debian I can use TUN/TAP to connect the internet or host when single QEMU However when I run two QEMU with two qemu-ifup and different address (on the same host) at the same time, the second QEMU

[Qemu-devel] [Bug 563582] Re: KVM 9.10 crashes for suse-10 as guest

2010-11-16 Thread Sergey Svishchev
I'm guessing that by crash he means lost connectivity to VM. Then it could be bug 579276 or bug 584048. -- KVM 9.10 crashes for suse-10 as guest https://bugs.launchpad.net/bugs/563582 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

Re:Re: Re: [Qemu-devel] How to make shadow memory for a process? and how to trace the data propation from the instruction level in QEMU?

2010-11-16 Thread F. Zhang
Hi! Hi OK it's getting interesting perhaps it would lead into instrumentation topic, which is quite hot topic in qemu-devel quite recently, so you jump into the wagon just about the right time :) OK, one thing for sure here is, I think you can implement your idea on top of

Re:Re: [Qemu-devel] How to make shadow memory for a process? and how to trace the data propation from the instruction level in QEMU?

2010-11-16 Thread F. Zhang
Mulyadi Santosa writes: Yes, I have read that paper, it’s wonderful! Besides the Argos, the bitblaze group, led by Dawn Song in Berkeley, has achieved great success in the taint analysis. The website about their dynamic analysis work (called TEMU) can be found at:

[Qemu-devel] [PATCH] trace: Trace vm_start()/vm_stop()

2010-11-16 Thread Stefan Hajnoczi
VM state change notifications are invoked from vm_start()/vm_stop(). Trace these state changes so we can reason about the state of the VM from trace output. Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- trace-events |3 +++ vl.c |3 +++ 2 files changed, 6

[Qemu-devel] [PATCH v2] pc: disable the BOCHS BIOS panic port

2010-11-16 Thread Bernhard Kohl
We have an OS which writes to port 0x400 when probing for special hardware. This causes an exit of the VM. With SeaBIOS this port isn't used anyway. Signed-off-by: Bernhard Kohl bernhard.k...@nsn.com --- Changes v1 - v2: Keep the ports silent. Don't print debug output if DEBUG_BIOS is enabled

[Qemu-devel] Re: [PATCH] pci: allow hotplug removal of cold-plugged devices

2010-11-16 Thread Michael S. Tsirkin
On Mon, Nov 15, 2010 at 11:23:44AM +0900, Isaku Yamahata wrote: Thank you for catching pcie part. The following fix is necessary. diff --git a/hw/pcie.c b/hw/pcie.c index 4df48b8..f461c1c 100644 --- a/hw/pcie.c +++ b/hw/pcie.c @@ -221,7 +221,7 @@ static int

[Qemu-devel] [PATCH comment tweaked] msix: allow byte and word reading from mmio

2010-11-16 Thread mst
Although explicitly disallowed by the PCI spec, some guests read a single byte or word from mmio. Likely a guest OS bug, but I have an OS which reads single bytes and it works fine on real hardware. Signed-off-by: Bernhard Kohl bernhard.k...@nsn.com Signed-off-by: Michael S. Tsirkin

[Qemu-devel] Re: [PATCH v2] pc: disable the BOCHS BIOS panic port

2010-11-16 Thread Alexander Graf
On 16.11.2010, at 13:28, Bernhard Kohl wrote: We have an OS which writes to port 0x400 when probing for special hardware. This causes an exit of the VM. With SeaBIOS this port isn't used anyway. Signed-off-by: Bernhard Kohl bernhard.k...@nsn.com Signed-off-by: Alexander Graf ag...@suse.de

Re: [Qemu-devel] Re: [PATCH 0/2] v8 Decouple block device removal from device removal

2010-11-16 Thread Ryan Harper
* Kevin Wolf kw...@redhat.com [2010-11-16 08:05]: Am 16.11.2010 14:51, schrieb Luiz Capitulino: On Fri, 12 Nov 2010 18:38:57 +0100 Kevin Wolf kw...@redhat.com wrote: Am 12.11.2010 18:07, schrieb Ryan Harper: details, details, v8 This patch series decouples the detachment of a block

Re: [Qemu-devel] [PATCH v2 1/2] Minimal RAM API support

2010-11-16 Thread Anthony Liguori
On 11/16/2010 09:02 AM, Alexander Graf wrote: +static QemuRamSlot *qemu_ram_find_slot(target_phys_addr_t start_addr, + ram_addr_t size) +{ +QemuRamSlot *slot; + +QLIST_FOREACH(slot,ram_slots.slots, next) { +if (slot-start_addr == start_addr

Re: [Qemu-devel] [RESEND][PATCH] Remove 16-character limit on process title

2010-11-16 Thread Anthony Liguori
On 11/05/2010 11:35 AM, John Morrissey wrote: qemu uses prctl() to set its process title. I bumped up against prctl()'s 16-character limit recently, when adding process title support to libvirt[1][2]. The attached patch overwrites argv instead. Linux seems to maintain the length of the original

Re: [Qemu-devel] [PATCH 1/2] Add a DTrace tracing backend targetted for SystemTAP compatability

2010-11-16 Thread Anthony Liguori
On 11/08/2010 01:33 PM, Daniel P. Berrange wrote: This introduces a new tracing backend that targets the SystemTAP implementation of DTrace userspace tracing. The core functionality should be applicable and standard across any DTrace implementation on Solaris, OS-X, *BSD, but the Makefile rules

Re: [Qemu-devel] [PATCH RESEND] apic: Don't iterate past last used apic

2010-11-16 Thread Anthony Liguori
On 11/05/2010 05:01 PM, Alex Williamson wrote: local_apics are allocated sequentially and never removed, so we can stop any iterations that go to MAX_APICS as soon as we hit the first NULL. Looking at a small guest running a virtio-net workload with oprofile, this drops

[Qemu-devel] [RFC][PATCH v4 00/18] virtagent: host/guest RPC communication agent

2010-11-16 Thread Michael Roth
This set of patches is meant to be applied on top of the recently submitted Virtproxy v3 patchset. It can also be obtained at: git://repo.or.cz/qemu/mdroth.git virtproxy_v3 OVERVIEW: There are a wide range of use cases motivating the need for a guest agent of some sort to extend the

[Qemu-devel] [RFC][PATCH v4 03/18] virtagent: qemu-vp, integrate virtagent server

2010-11-16 Thread Michael Roth
This allows the guest RPC server to be integrated into the qemu-vp/virtproxy i/o loop Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- qemu-char.c | 26 qemu-config.c |3 ++ qemu-vp.c | 94 +++- 3 files

[Qemu-devel] [RFC][PATCH v4 01/18] virtagent: add common rpc transport defs

2010-11-16 Thread Michael Roth
Common code for sending/recieving RPCs via http over virtproxy channel. All communication is done via asynchronous read/write handlers and using non-blocking reads/writes Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- virtagent-common.c | 440

[Qemu-devel] [RFC][PATCH v4 02/18] virtagent: base definitions for host/guest RPC server

2010-11-16 Thread Michael Roth
Basic skeleton code for RPC server. This is shared by both the guest-side RPC server as well as the host-side one (the advertised RPCs for each by guest/host-specific arrays). Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- virtagent-daemon.c | 209

[Qemu-devel] [RFC][PATCH v4 07/18] virtagent: add getdmesg RPC

2010-11-16 Thread Michael Roth
Add RPC to view guest dmesg output. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- virtagent-daemon.c | 46 ++ virtagent-daemon.h |1 + 2 files changed, 47 insertions(+), 0 deletions(-) diff --git a/virtagent-daemon.c

[Qemu-devel] [RFC][PATCH v4 06/18] virtagent: add agent_viewfile command

2010-11-16 Thread Michael Roth
Utilize the getfile RPC to provide a means to view text files in the guest. Getfile can handle binary files as well but we don't advertise that here due to the special handling requiring to store it and provide it back to the user (base64 encoding it for instance). Hence the potentially confusing

[Qemu-devel] [RFC][PATCH v4 05/18] virtagent: add getfile RPC

2010-11-16 Thread Michael Roth
Add RPC to retrieve a guest file. A size limit of some sort will eventually be needed else we can block the monitor for arbitrarily long periods of time. This interface is intended for smaller reads like peeking at logs and /proc and such. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com ---

[Qemu-devel] [RFC][PATCH v4 08/18] virtagent: add agent_viewdmesg command

2010-11-16 Thread Michael Roth
Add commands to view guest dmesg output. Currently it is a 16K buffer. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- hmp-commands.hx | 16 + qmp-commands.hx | 35 +++ virtagent.c | 100 +++

[Qemu-devel] Re: [PATCH v3 2/3] virtio-pci: Use ioeventfd for virtqueue notify

2010-11-16 Thread Michael S. Tsirkin
On Fri, Nov 12, 2010 at 01:24:28PM +, Stefan Hajnoczi wrote: Virtqueue notify is currently handled synchronously in userspace virtio. This prevents the vcpu from executing guest code while hardware emulation code handles the notify. On systems that support KVM, the ioeventfd mechanism

[Qemu-devel] [RFC][PATCH v4 11/18] virtagent: add va_ping RPC

2010-11-16 Thread Michael Roth
Do nothing RPC that simply replies to client Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- virtagent-daemon.c | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/virtagent-daemon.c b/virtagent-daemon.c index 18992dd..137641d 100644 ---

[Qemu-devel] [RFC][PATCH v4 09/18] virtagent: add va_shutdown RPC

2010-11-16 Thread Michael Roth
RPC to initiate guest shutdown/reboot/powerdown Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- virtagent-daemon.c | 58 1 files changed, 58 insertions(+), 0 deletions(-) diff --git a/virtagent-daemon.c b/virtagent-daemon.c index

[Qemu-devel] [RFC][PATCH v4 12/18] virtagent: add agent_ping monitor command

2010-11-16 Thread Michael Roth
Monitor command to ping the RPC server. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- hmp-commands.hx | 16 ++ qmp-commands.hx | 32 + virtagent.c | 84 +++ virtagent.h |3 ++ 4 files

[Qemu-devel] [RFC][PATCH v4 16/18] virtagent: add va_send_hello() client function

2010-11-16 Thread Michael Roth
This tells the host RPC server (QEMU) that we're up and running Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- virtagent.c | 55 +++ virtagent.h |1 + 2 files changed, 56 insertions(+), 0 deletions(-) diff --git a/virtagent.c

[Qemu-devel] [RFC][PATCH v4 13/18] virtagent: add agent_capabilities monitor function

2010-11-16 Thread Michael Roth
Call guest agent's built-in introspection functions to get a list of supported RPCs, and re-negotiate guest agent capabilities to determine what agent_* commands are supported. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- hmp-commands.hx | 16 qmp-commands.hx | 32

Re: [Qemu-devel] Is there any approach to setup guest only network

2010-11-16 Thread Mulyadi Santosa
Hi 2010/11/16 郭沐錫 maxgreg13...@gmail.com: Dear all I have set two directory for QEMU. One of my qemu-ifup is as follow(the other ip address is different) #!/bin/sh sudo modprobe tun sudo /sbin/ifconfig $1 up 192.168.2.52 netmask 255.255.255.0 broadcast 192.168.2.255 # IP masquerade

[Qemu-devel] [RFC][PATCH v4 14/18] virtagent: add client capabilities init function

2010-11-16 Thread Michael Roth
Non-monitor version of agent_capabilities monitor function. This is called by the local RPC server when it gets a hello from the guest agent to re-negotiate guest agent capabilities. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- virtagent.c | 34 ++

[Qemu-devel] [RFC][PATCH v4 15/18] virtagent: add va_hello RPC function

2010-11-16 Thread Michael Roth
This RPC tells us the guest agent is up and ready, and invokes guest agent capability negotiation Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- virtagent-daemon.c | 19 +++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/virtagent-daemon.c

[Qemu-devel] Re: [RFC PATCH 8/8] device-assignment: pass through and stub more PCI caps

2010-11-16 Thread Michael S. Tsirkin
On Fri, Nov 12, 2010 at 08:42:38AM -0700, Alex Williamson wrote: On Fri, 2010-11-12 at 11:11 +0200, Michael S. Tsirkin wrote: On Thu, Nov 11, 2010 at 11:30:07PM -0700, Alex Williamson wrote: On Fri, 2010-11-12 at 07:36 +0200, Michael S. Tsirkin wrote: On Thu, Nov 11, 2010 at 07:56:46PM

Re: [Qemu-devel] [PATCH] Introduce -accel command option.

2010-11-16 Thread Anthony PERARD
On Mon, 15 Nov 2010, Anthony Liguori wrote: On 11/15/2010 09:45 AM, anthony.per...@citrix.com wrote: From: Anthony PERARDanthony.per...@citrix.com This option gives the ability to switch one accelerator like kvm, xen or the default one tcg. We can specify more than one accelerator by

[Qemu-devel] [RFC][PATCH v4 18/18] virtagent: Makefile/configure changes to build virtagent bits

2010-11-16 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile|2 +- Makefile.target |2 +- configure | 25 + 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b4f93eb..f20032f 100644 --- a/Makefile +++

Re: [Qemu-devel] [PATCH] Introduce -accel command option.

2010-11-16 Thread Anthony Liguori
On 11/16/2010 10:10 AM, Anthony PERARD wrote: On Mon, 15 Nov 2010, Anthony Liguori wrote: On 11/15/2010 09:45 AM, anthony.per...@citrix.com wrote: From: Anthony PERARDanthony.per...@citrix.com This option gives the ability to switch one accelerator like kvm, xen or the default one

[Qemu-devel] Re: [PATCH comment tweaked] msix: allow byte and word reading from mmio

2010-11-16 Thread Bernhard Kohl
Am 16.11.2010 14:14, schrieb m...@redhat.com: Although explicitly disallowed by the PCI spec, some guests read a single byte or word from mmio. Likely a guest OS bug, but I have an OS which reads single bytes and it works fine on real hardware. Signed-off-by: Bernhard Kohlbernhard.k...@nsn.com

[Qemu-devel] [RFC][PATCH v4 17/18] virtagent: qemu-vp, va_send_hello() on startup

2010-11-16 Thread Michael Roth
Make the hello call on guest agent startup so QEMU can do whatever init it needs (currently, capabilities negotiation). Temporarilly commented due to this tending to induce a virtio bug in RHEL 6.0. As a result capabilities negotiation must be invoked manually from QEMU via the agent_capabilities

Re: [Qemu-devel] [PATCH] Introduce -accel command option.

2010-11-16 Thread Daniel P. Berrange
On Tue, Nov 16, 2010 at 10:41:25AM -0600, Anthony Liguori wrote: On 11/16/2010 10:10 AM, Anthony PERARD wrote: On Mon, 15 Nov 2010, Anthony Liguori wrote: On 11/15/2010 09:45 AM, anthony.per...@citrix.com wrote: From: Anthony PERARDanthony.per...@citrix.com This option gives

[Qemu-devel] Re: [PATCH v3 2/3] virtio-pci: Use ioeventfd for virtqueue notify

2010-11-16 Thread Stefan Hajnoczi
On Tue, Nov 16, 2010 at 4:02 PM, Michael S. Tsirkin m...@redhat.com wrote: On Fri, Nov 12, 2010 at 01:24:28PM +, Stefan Hajnoczi wrote: Virtqueue notify is currently handled synchronously in userspace virtio.   This prevents the vcpu from executing guest code while hardware emulation code

Re: [Qemu-devel] [PATCH] Introduce -accel command option.

2010-11-16 Thread Alexander Graf
On 16.11.2010, at 17:55, Daniel P. Berrange wrote: On Tue, Nov 16, 2010 at 10:41:25AM -0600, Anthony Liguori wrote: On 11/16/2010 10:10 AM, Anthony PERARD wrote: On Mon, 15 Nov 2010, Anthony Liguori wrote: On 11/15/2010 09:45 AM, anthony.per...@citrix.com wrote: From: Anthony

Re: [Qemu-devel] [PATCH v2 3/3] trace: enable all events by default

2010-11-16 Thread Stefan Hajnoczi
On Thu, Nov 11, 2010 at 9:31 AM, Stefan Hajnoczi stefa...@gmail.com wrote: On Wed, Nov 10, 2010 at 9:20 PM, Lluís xscr...@gmx.net wrote: Blue Swirl writes: On Wed, Nov 10, 2010 at 7:57 PM, Lluís xscr...@gmx.net wrote: Blue Swirl writes: On Wed, Nov 10, 2010 at 5:59 PM, Lluís xscr...@gmx.net

Re: [Qemu-devel] [PATCH] Introduce -accel command option.

2010-11-16 Thread Anthony Liguori
On 11/16/2010 10:55 AM, Daniel P. Berrange wrote: Just -machine accel=accels. Part of my rational is that accelerator is a machine property. If you do -M xenpv it ought to imply -machine accel=xen. Surely, only if it is running on a Xen Dom0. If you use -M xenpv on a KVM host, then -M

[Qemu-devel] Re: Hitting 29 NIC limit

2010-11-16 Thread Michael S. Tsirkin
On Thu, Oct 14, 2010 at 05:17:36PM -0500, Anthony Liguori wrote: On 10/14/2010 05:12 PM, Anjali Kulkarni wrote: Thanks. Does this work for e1000 as well? Haven't tried. I don't know how various e1000 drivers would react. Also, does it support pci hotplug? No, but that's fixable down

Re: [Qemu-devel] [PATCH] Introduce -accel command option.

2010-11-16 Thread Anthony Liguori
On 11/16/2010 10:59 AM, Alexander Graf wrote: Surely, only if it is running on a Xen Dom0. If you use -M xenpv on a KVM host, then -M xenpv should imply -machine accel=kvm (ie it would be using xenner) Actually, it should imply -machine accel=kvm,tcg :). Accelerators really are not a

Re: [Qemu-devel] [PATCH] Introduce -accel command option.

2010-11-16 Thread Alexander Graf
On 16.11.2010, at 18:20, Anthony Liguori wrote: On 11/16/2010 10:59 AM, Alexander Graf wrote: Surely, only if it is running on a Xen Dom0. If you use -M xenpv on a KVM host, then -M xenpv should imply -machine accel=kvm (ie it would be using xenner) Actually, it should imply

[Qemu-devel] Re: Hitting 29 NIC limit

2010-11-16 Thread Michael S. Tsirkin
On Thu, Oct 14, 2010 at 02:07:17PM +0200, Avi Kivity wrote: On 10/14/2010 12:54 AM, Anthony Liguori wrote: On 10/13/2010 05:32 PM, Anjali Kulkarni wrote: Hi, Using the legacy way of starting up NICs, I am hitting a limitation after 29 NICs ie no more than 29 are detected (that's because

Re: [Qemu-devel] [PATCH] Introduce -accel command option.

2010-11-16 Thread Anthony Liguori
On 11/16/2010 11:24 AM, Alexander Graf wrote: On 16.11.2010, at 18:20, Anthony Liguori wrote: On 11/16/2010 10:59 AM, Alexander Graf wrote: Surely, only if it is running on a Xen Dom0. If you use -M xenpv on a KVM host, then -M xenpv should imply -machine accel=kvm (ie it

[Qemu-devel] Re: [PATCH 0/2] msi support for virtfs

2010-11-16 Thread Michael S. Tsirkin
On Thu, Nov 11, 2010 at 12:59:24PM +0100, Gerd Hoffmann wrote: Hi, This tiny patch series adds msi support for virtfs. It's two patches only because we need a compat property to stay compatible with -stable and we don't have a pc-0.14 machine type yet, so this is added first. Scared me

Re: [Qemu-devel] [PATCH 1/2] Add a DTrace tracing backend targetted for SystemTAP compatability

2010-11-16 Thread Anthony Liguori
On 11/16/2010 11:43 AM, Peter Maydell wrote: On 16 November 2010 15:46, Anthony Liguorianth...@codemonkey.ws wrote: On 11/08/2010 01:33 PM, Daniel P. Berrange wrote: This introduces a new tracing backend that targets the SystemTAP implementation of DTrace userspace tracing.

Re: [Qemu-devel] [PATCH] Introduce -accel command option.

2010-11-16 Thread Alexander Graf
On 16.11.2010, at 18:27, Anthony Liguori wrote: On 11/16/2010 11:24 AM, Alexander Graf wrote: On 16.11.2010, at 18:20, Anthony Liguori wrote: On 11/16/2010 10:59 AM, Alexander Graf wrote: Surely, only if it is running on a Xen Dom0. If you use -M xenpv on a KVM host,

[Qemu-devel] [Bug 563582] Re: KVM 9.10 crashes for suse-10 as guest

2010-11-16 Thread Anthony Liguori
Please do not file bugs against upstream unless they've been explicitly reproduced against an upstream version. Thanks. ** Changed in: qemu Status: New = Invalid -- KVM 9.10 crashes for suse-10 as guest https://bugs.launchpad.net/bugs/563582 You received this bug notification because

Re: [Qemu-devel] [PATCH] Introduce -accel command option.

2010-11-16 Thread Anthony PERARD
On Tue, 16 Nov 2010, Anthony Liguori wrote: On 11/16/2010 11:24 AM, Alexander Graf wrote: On 16.11.2010, at 18:20, Anthony Liguori wrote: On 11/16/2010 10:59 AM, Alexander Graf wrote: Surely, only if it is running on a Xen Dom0. If you use -M xenpv on a KVM host, then -M xenpv

[Qemu-devel] Re: [PATCHv4 15/15] Pass boot device list to firmware.

2010-11-16 Thread Blue Swirl
2010/11/16 Gleb Natapov g...@redhat.com: On Mon, Nov 15, 2010 at 08:29:24PM +, Blue Swirl wrote: 2010/11/15 Gleb Natapov g...@redhat.com: On Sun, Nov 14, 2010 at 10:50:13PM +, Blue Swirl wrote: On Sun, Nov 14, 2010 at 3:39 PM, Gleb Natapov g...@redhat.com wrote: Signed-off-by:

[Qemu-devel] Re: [PATCH] add a command line option to specify the interface to send multicast packets on

2010-11-16 Thread Michael S. Tsirkin
On Wed, Nov 10, 2010 at 05:47:35PM -0800, Mike Ryan wrote: Add an option to specify the host interface to send multicast packets on when using a multicast socket for networking. The option takes the name of a host interface (e.g., eth0) and sets the IP_MULTICAST_IF socket option, which causes

[Qemu-devel] Re: [PATCH] spice: add qxl device

2010-11-16 Thread Michael S. Tsirkin
On Tue, Nov 02, 2010 at 02:34:58PM +0100, Gerd Hoffmann wrote: +if (ram_size 32 * 1024 * 1024) +ram_size = 32 * 1024 * 1024; +vga_common_init(vga, ram_size); +vga_init(vga); +register_ioport_write(0x3c0, 16, 1, qxl_vga_ioport_write, vga); +

Re: [Qemu-devel] Is there any approach to setup guest only network

2010-11-16 Thread 郭沐錫
Dear all Sorry I can't understand what you mean. I know I still have many things to learn. Please can you explain more clearly. Thanks a lot Best Regards, Sn 2010/11/17 Mulyadi Santosa mulyadi.sant...@gmail.com Hi 2010/11/16 郭沐錫 maxgreg13...@gmail.com: Dear all I have set two

[Qemu-devel] [PATCH] block: Remove unused s-hd in various drivers

2010-11-16 Thread Kevin Wolf
All drivers use bs-file instead of s-hd fpr quite a while now, so it's time to remove s-hd. Signed-off-by: Kevin Wolf kw...@redhat.com --- block/qcow.c |1 - block/qcow2.h |1 - block/vdi.c |1 - block/vmdk.c |1 - block/vpc.c |2 -- 5 files changed, 0 insertions(+), 6

[Qemu-devel] [Bug 676190] [NEW] Latest git fails to link - missing main() routine

2010-11-16 Thread Nigel Horne
Public bug reported: I can't get git 2834c3e0140c3b0ed4422909dfa0607b7213d95d to link on my Debian Linux/x86_64 machine with gcc4.4: All goes well until the link stage: /usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/crt1.o: In function `_start': (.text+0x20): undefined reference to `main'

Re: [Qemu-devel] [PATCH] Introduce -accel command option.

2010-11-16 Thread Alexander Graf
On 16.11.2010, at 19:22, Anthony PERARD wrote: On Tue, 16 Nov 2010, Anthony Liguori wrote: On 11/16/2010 11:24 AM, Alexander Graf wrote: On 16.11.2010, at 18:20, Anthony Liguori wrote: On 11/16/2010 10:59 AM, Alexander Graf wrote: Surely, only if it is running on a Xen Dom0. If

Re: [Qemu-devel] [PATCH 1/2] Add a DTrace tracing backend targetted for SystemTAP compatability

2010-11-16 Thread Peter Maydell
On 16 November 2010 18:10, Anthony Liguori anth...@codemonkey.ws wrote: On 11/16/2010 11:43 AM, Peter Maydell wrote: Unfortunately these commits: 2834c3e Add support for generating a systemtap tapset static probes 4addb11 Add a DTrace tracing backend targetted for SystemTAP compatability

Re: [Qemu-devel] [PATCH] Introduce -accel command option.

2010-11-16 Thread Anthony Liguori
On 11/16/2010 12:49 PM, Alexander Graf wrote: On 16.11.2010, at 19:22, Anthony PERARD wrote: On Tue, 16 Nov 2010, Anthony Liguori wrote: On 11/16/2010 11:24 AM, Alexander Graf wrote: On 16.11.2010, at 18:20, Anthony Liguori wrote: On 11/16/2010 10:59 AM,

[Qemu-devel] Re: [PATCH v9 8/8] x3130/downstream: support aer.

2010-11-16 Thread Etienne Martineau
On Tue, 2010-11-16 at 17:26 +0900, Isaku Yamahata wrote: add aer support. Signed-off-by: Isaku Yamahata yamah...@valinux.co.jp I'm actually working on a scheme to provide support to handle PCI errors related to assigned devices. The goal is to notify the coresponding driver so that all his

[Qemu-devel] Re: Hitting 29 NIC limit

2010-11-16 Thread Anthony Liguori
On 11/16/2010 11:23 AM, Michael S. Tsirkin wrote: On Thu, Oct 14, 2010 at 05:17:36PM -0500, Anthony Liguori wrote: On 10/14/2010 05:12 PM, Anjali Kulkarni wrote: Thanks. Does this work for e1000 as well? Haven't tried. I don't know how various e1000 drivers would react.

Re: [Qemu-devel] [PATCH 1/2] Add a DTrace tracing backend targetted for SystemTAP compatability

2010-11-16 Thread Anthony Liguori
On 11/16/2010 12:54 PM, Peter Maydell wrote: On 16 November 2010 18:10, Anthony Liguorianth...@codemonkey.ws wrote: On 11/16/2010 11:43 AM, Peter Maydell wrote: Unfortunately these commits: 2834c3e Add support for generating a systemtap tapset static probes 4addb11 Add a DTrace

[Qemu-devel] Re: [PATCHv4 15/15] Pass boot device list to firmware.

2010-11-16 Thread Gleb Natapov
On Tue, Nov 16, 2010 at 06:30:19PM +, Blue Swirl wrote: Perhaps the FW path should use device class names if no name is specified. What do you mean by device class name. We can do something like this: if (dev-child_bus.lh_first)        return dev-child_bus.lh_first-info-name; i.e

Re: [Qemu-devel] Re: [PATCH] add a command line option to specify the interface to send multicast packets on

2010-11-16 Thread Mike Ryan
On Tue, Nov 16, 2010 at 07:54:58PM +0200, Michael S. Tsirkin wrote: snip Let's let the user pass in the IP address? That would solve the portability issue. Further, we could be doing IPv6, right? So you'd need IPV6_MULTICAST_IF? Also - you might also want to control

[Qemu-devel] [PATCH 1/3] qemu-char: Introduce Memory driver

2010-11-16 Thread Luiz Capitulino
This driver handles in-memory chardev operations. That's, all writes to this driver are stored in an internal buffer and it doesn't talk to the external world in any way. Right now it's very simple: it supports only writes. But it can be easily extended to support more operations. This is going

[Qemu-devel] [PATCH v4 0/3]: QMP: Human Monitor passthrough

2010-11-16 Thread Luiz Capitulino
Simple example: - { execute: human-monitor-command, arguments: { command-line: print /i 10+25 } } - { return: 35\r\n } Please, check individual patches for details. Also note that this series depends on the script improvements one. Also, Markus suggestion of having an assert() in

[Qemu-devel] [PATCH 3/3] QMP/qmp-shell: Introduce HMP mode

2010-11-16 Thread Luiz Capitulino
In which qmp-shell will exclusively use the HMP passthrough feature, this is useful for testing. Example: # ./qmp-shell -H qmp-sock Welcome to the HMP shell! Connected to QEMU 0.13.50 (QEMU) info network VLAN 0 devices: user.0: net=10.0.2.0, restricted=n

[Qemu-devel] [PATCH 2/3] QMP: Introduce Human Monitor passthrough command

2010-11-16 Thread Luiz Capitulino
This command allows QMP clients to execute HMP commands. Please, check the documentation added to the qmp-commands.hx file for additional details about the interface and its limitations. Signed-off-by: Luiz Capitulino lcapitul...@redhat.com --- monitor.c | 38

Re: [Qemu-devel] Re: [Try2][PATCH] Initial implementation of a mpeg1 layer2 streaming audio driver.

2010-11-16 Thread Andreas Färber
Am 15.11.2010 um 22:53 schrieb François Revol: I'm still having a hard time getting sound to work reliably in Haiku guests regardless the output or emulated card. OTH it works perfectly in VirtualBox with almost no cpu overhead. If anyone has a clue... It might be related to the use of

Re: [Qemu-devel] Re: [Try2][PATCH] Initial implementation of a mpeg1 layer2 streaming audio driver.

2010-11-16 Thread Anthony Liguori
On 11/16/2010 01:22 PM, Andreas Färber wrote: Am 15.11.2010 um 22:53 schrieb François Revol: I'm still having a hard time getting sound to work reliably in Haiku guests regardless the output or emulated card. OTH it works perfectly in VirtualBox with almost no cpu overhead. If anyone has a

Re: [Qemu-devel] Fwd: [PATCH v2] Guest OS hangs on usb_add

2010-11-16 Thread TJ
On 11/16/2010 10:00 AM, Anthony Liguori wrote: On 11/02/2010 09:51 AM, TJ wrote: Doesn't look like this has ever been committed. qemu-kvm-0.13 has just arrived to the portage tree, but I am still having problems with it. I checked the git log and it's not there! Please commit. One

Re: [Qemu-devel] Fwd: [PATCH v2] Guest OS hangs on usb_add

2010-11-16 Thread Anthony Liguori
On 11/16/2010 01:36 PM, TJ wrote: On 11/16/2010 10:00 AM, Anthony Liguori wrote: On 11/02/2010 09:51 AM, TJ wrote: Doesn't look like this has ever been committed. qemu-kvm-0.13 has just arrived to the portage tree, but I am still having problems with it. I checked the git log and

Re: [Qemu-devel] [PATCH v2 1/2] rtl8139: add vlan tag insertion

2010-11-16 Thread Anthony Liguori
On 11/08/2010 07:46 PM, Benjamin Poirier wrote: Add support to the emulated hardware to add vlan tags in packets going from the guest to the network. Signed-off-by: Benjamin Poirierbenjamin.poir...@polymtl.ca Cc: Igor V. Kovalenkoigor.v.kovale...@gmail.com --- Changes since v1: * moved the

[Qemu-devel] [PATCH] Fix compilation failure with simple trace when srcdir==objdir

2010-11-16 Thread Peter Maydell
Fix a makefile error that meant that qemu would not compile if the source and object directories were the same. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- Makefile.target | 11 +-- 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Makefile.target

Re: [Qemu-devel] [PATCH] Out off array access in usb-net

2010-11-16 Thread Anthony Liguori
On 11/09/2010 04:51 AM, Markus Armbruster wrote: Gleb Natapovg...@redhat.com writes: On Tue, Nov 09, 2010 at 11:16:43AM +0100, Markus Armbruster wrote: Gleb Natapovg...@redhat.com writes: On Tue, Nov 09, 2010 at 10:30:54AM +0100, Markus Armbruster wrote: Gleb

Re: [Qemu-devel] [PATCH] multiboot: Prevent loading of x86_64 images

2010-11-16 Thread Anthony Liguori
On 11/04/2010 05:22 PM, Adam Lackorzynski wrote: A via -kernel supplied x86_64 ELF image is being started in 32bit mode. Detect and exit if a 64bit image has been supplied. Signed-off-by: Adam Lackorzynskia...@os.inf.tu-dresden.de Acked-by: Alexander Grafag...@suse.de Applied. Thanks.

  1   2   >