Re: [Qemu-devel] [RFC] Device sandboxing

2011-12-08 Thread Stefan Hajnoczi
On Wed, Dec 7, 2011 at 8:54 PM, Eric Paris epa...@redhat.com wrote: On Wed, 2011-12-07 at 13:43 -0600, Anthony Liguori wrote: On 12/07/2011 01:32 PM, Corey Bryant wrote: That would seem like the logical approach. I think there may be new mode 2 patches coming soon so we can see how they go

Re: [Qemu-devel] [PATCH 1/1 V6] qemu-kvm: fix improper nmi emulation

2011-12-08 Thread Jan Kiszka
On 2011-12-07 11:29, Avi Kivity wrote: On 10/17/2011 06:00 PM, Lai Jiangshan wrote: From: Lai Jiangshan la...@cn.fujitsu.com Currently, NMI interrupt is blindly sent to all the vCPUs when NMI button event happens. This doesn't properly emulate real hardware on which NMI button event triggers

Re: [Qemu-devel] [RFC] Device sandboxing

2011-12-08 Thread Stefan Hajnoczi
On Wed, Dec 7, 2011 at 7:32 PM, Corey Bryant cor...@linux.vnet.ibm.com wrote: On 12/07/2011 01:48 PM, Anthony Liguori wrote: On 12/07/2011 12:25 PM, Corey Bryant wrote: * The trusted helper thread would run beside the untrusted thread, enabling the untrusted thread to make syscalls beyond

Re: [Qemu-devel] an error while loading checkpoint

2011-12-08 Thread Stefan Hajnoczi
On Wed, Dec 7, 2011 at 11:41 PM, sparsh mittal sparsh0mit...@gmail.com wrote: I get this warning while using a checkpoint. I issued the command -m 4G -icount 0 and other parameters. Unknown savevm section type 32 qemu-system-x86_64: Error -22 while loading VM state My computer has 48GB RAM,

Re: [Qemu-devel] Insane virtio-serial semantics

2011-12-08 Thread Markus Armbruster
Anthony Liguori anth...@codemonkey.ws writes: On 12/07/2011 01:44 PM, Michael Roth wrote: On 12/07/2011 07:49 AM, Anthony Liguori wrote: On 12/07/2011 02:21 AM, Markus Armbruster wrote: Anthony Liguorianth...@codemonkey.ws writes: [...] They have the same purpose (which are both vague TBH).

Re: [Qemu-devel] [PATCH] use pci macro in virtio

2011-12-08 Thread Stefan Hajnoczi
On Thu, Dec 8, 2011 at 5:49 AM, hkran hk...@linux.vnet.ibm.com wrote: Signed-off-by: hkran hk...@linux.vnet.ibm.com Anthony asked that you put your real name in the Signed-off-by. You don't need to resend the patch, please just reply to this mail with: Signed-off-by: $YOUR_NAME

Re: [Qemu-devel] [PATCH 1/1 V6] qemu-kvm: fix improper nmi emulation

2011-12-08 Thread Jan Kiszka
On 2011-12-08 10:42, Jan Kiszka wrote: On 2011-12-07 11:29, Avi Kivity wrote: On 10/17/2011 06:00 PM, Lai Jiangshan wrote: From: Lai Jiangshan la...@cn.fujitsu.com Currently, NMI interrupt is blindly sent to all the vCPUs when NMI button event happens. This doesn't properly emulate real

[Qemu-devel] qemu Website down?

2011-12-08 Thread Birk Bremer
Hi, sorry for being off topic but I have no I idea how to reach somebody otherwise... Since yesterday the Website http://www.qemu.org seems to be down (rejecting connections). I tried it from different IP addresses from different computers, but no luck. Would somebody please forward this to the

[Qemu-devel] [PATCH v2] Documentation: Add qemu-img -t parameter in man page

2011-12-08 Thread Kevin Wolf
Signed-off-by: Kevin Wolf kw...@redhat.com --- qemu-img-cmds.hx |6 +++--- qemu-img.texi| 10 +++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/qemu-img-cmds.hx b/qemu-img-cmds.hx index 4be00a5..49dce7c 100644 --- a/qemu-img-cmds.hx +++ b/qemu-img-cmds.hx @@

Re: [Qemu-devel] [PATCH 00/14] ARM: Samsung S5PC210-based boards support.

2011-12-08 Thread Peter Maydell
On 7 December 2011 10:45, Dmitry Solodkiy d.solod...@samsung.com wrote: Dear Peter,  Orion, s5pc210 and Exynos4210 are aliases for the same hardware chip.  We decided that s5pc210 is more informative than exynos4 (there are many hardware models started with Exynos4...) or Orion(obsolete one).

Re: [Qemu-devel] [PATCH v2] Documentation: Add qemu-img -t parameter in man page

2011-12-08 Thread Stefan Hajnoczi
On Thu, Dec 8, 2011 at 10:57 AM, Kevin Wolf kw...@redhat.com wrote: Signed-off-by: Kevin Wolf kw...@redhat.com ---  qemu-img-cmds.hx |    6 +++---  qemu-img.texi    |   10 +++---  2 files changed, 10 insertions(+), 6 deletions(-) Reviewed-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com

Re: [Qemu-devel] [PATCH] block/cow : return real error code in cow.c

2011-12-08 Thread Kevin Wolf
Am 08.12.2011 06:40, schrieb Li Zhi Hui: Signed-off-by: Li Zhi Hui zhihu...@linux.vnet.ibm.com --- block/cow.c | 22 -- 1 files changed, 12 insertions(+), 10 deletions(-) diff --git a/block/cow.c b/block/cow.c index 3c52735..383482b 100644 --- a/block/cow.c +++

Re: [Qemu-devel] qemu Website down?

2011-12-08 Thread Alex Bradbury
On 8 December 2011 10:29, Birk Bremer birk.bre...@5pm.de wrote: Hi, sorry for being off topic but I have no I idea how to reach somebody otherwise... Since yesterday the Website http://www.qemu.org seems to be down (rejecting connections). I tried it from different IP addresses from

Re: [Qemu-devel] qemu Website down?

2011-12-08 Thread Birk Bremer
Ok, this information did not turn up in a google search when searching for qemu website down Thanks best regards Birk Am 08.12.11 12:28, schrieb Alex Bradbury: On 8 December 2011 10:29, Birk Bremer birk.bre...@5pm.de wrote: Hi, sorry for being off topic but I have no I idea how to

[Qemu-devel] [PATCH v4 15/15] kvm: Arm in-kernel irqchip support

2011-12-08 Thread Jan Kiszka
Make the basic in-kernel irqchip support selectable via -machine ...,kernel_irqchip=on. Leave it off by default until it can fully replace user space models. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- qemu-config.c |4 qemu-options.hx |5 - 2 files changed, 8

[Qemu-devel] [PATCH v4 08/15] ioapic: Introduce backend/frontend infrastructure for KVM reuse

2011-12-08 Thread Jan Kiszka
Split up the IOAPIC analogously to APIC and i8259. KVM will share the device description, reset logic and certain init parts with the user space model. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- Makefile.target |2 +- hw/ioapic.c | 130

[Qemu-devel] [PATCH v4 14/15] kvm: x86: Add user space part for in-kernel IOAPIC

2011-12-08 Thread Jan Kiszka
This introduces the KVM-accelerated IOAPIC backend and extends the IRQ routing setup by the 0-2 redirection when needed. The IOAPIC gains a KVM-specific property that allows to define the GSI base for injecting interrupts into the kernel model. This will allow to disentangle PIC and IOAPIC pins

[Qemu-devel] [PATCH v4 05/15] apic: Introduce backend/frontend infrastructure for KVM reuse

2011-12-08 Thread Jan Kiszka
The KVM in-kernel APIC model will reuse parts of the user space model while providing the same frontend view to guest and most management interfaces. Introduce an APIC backend concept to encapsulate those parts that will tell user space and KVM model apart. The backend offers callback hooks for

[Qemu-devel] [PATCH v4 06/15] apic: Open-code timer save/restore

2011-12-08 Thread Jan Kiszka
To enable migration between accelerated and non-accelerated APIC models, we will need to handle the timer saving and restoring specially and can no longer rely on the automatics of VMSTATE_TIMER. Specifically, accelerated model will not start any QEMUTimer. This patch therefore factors out the

Re: [Qemu-devel] [PATCH v4 2/3] Extract code to nbd_setup function to be used for many purposes

2011-12-08 Thread Stefan Hajnoczi
On Wed, Dec 7, 2011 at 4:23 AM, Chunyan Liu cy...@suse.com wrote: Overall looks good, some suggestions: @@ -53,7 +53,7 @@ static void usage(const char *name)    -o, --offset=OFFSET  offset into the image\n    -b, --bind=IFACE interface to bind to (default `0.0.0.0')\n    -k,

[Qemu-devel] [PATCH v4 02/15] kvm: Move kvmclock into hw/kvm folder

2011-12-08 Thread Jan Kiszka
More KVM-specific devices will come, so let's start with moving the kvmclock into a dedicated folder. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- Makefile.target|4 ++-- configure |1 + hw/{kvmclock.c = kvm/clock.c} |4 ++--

[Qemu-devel] (no subject)

2011-12-08 Thread wong
...I suppose you won�t find the place more interesting than this site! http://www.spassvoegel-woellstein.de/page.december.php?uvpage=16t5

[Qemu-devel] [PATCH v4 03/15] apic: Stop timer on reset

2011-12-08 Thread Jan Kiszka
All LVTs are masked on reset, so the timer becomes ineffective. Letting it tick nevertheless is harmless, but will at least create a spurious trace event. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- hw/apic.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git

Re: [Qemu-devel] Error while booting

2011-12-08 Thread Kevin Wolf
Am 07.12.2011 17:26, schrieb sparsh mittal: I use version 0.15 of qemu with marss cycle-accurate simulator. After making checkpoints in an image, I get this error, while trying to boot it (i.e. not using loadvm to run checkpoint, but just starting the image). This kernel requires an

Re: [Qemu-devel] [PATCH 1/2] net: expand tabs in net/socket.c

2011-12-08 Thread Zhi Yong Wu
On Wed, Dec 7, 2011 at 11:01 PM, Stefan Hajnoczi stefa...@linux.vnet.ibm.com wrote: In order to make later patches sane, expand the tab characters and conform to QEMU coding style now. Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com ---  net/socket.c |   79

[Qemu-devel] [PATCH v4 10/15] kvm: Introduce core services for in-kernel irqchip support

2011-12-08 Thread Jan Kiszka
Add the basic infrastructure to active in-kernel irqchip support, inject interrupts into these models, and maintain IRQ routes. Routing is optional and depends on the host arch supporting KVM_CAP_IRQ_ROUTING. When it's not available on x86, we looe the HPET as we can't route GSI0 to IOAPIC pin 2.

[Qemu-devel] [PATCH v4 11/15] kvm: x86: Establish IRQ0 override control

2011-12-08 Thread Jan Kiszka
KVM is forced to disable the IRQ0 override when we run with in-kernel irqchip but without IRQ routing support of the kernel. Set the fwcfg value correspondingly. This aligns us with qemu-kvm. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- hw/pc.c|3 ++- kvm-all.c |5 +

[Qemu-devel] [PATCH v4 04/15] apic: Inject external NMI events via LINT1

2011-12-08 Thread Jan Kiszka
On real hardware, NMI button events are injected via the LINT1 line of the APICs. E.g. kdump expect this wiring and gets upset if the per-APIC LINT1 mask is not respected, i.e. if NMIs are injected to VCPUs that should not receive them. Change the APIC emulation code to reflect this. Based on

Re: [Qemu-devel] [PATCH 2/2] net: take ownership of fd in socket init functions

2011-12-08 Thread Zhi Yong Wu
On Wed, Dec 7, 2011 at 11:01 PM, Stefan Hajnoczi stefa...@linux.vnet.ibm.com wrote: Today net/socket.c has no consistent policy for closing the socket file descriptor when initialization fails.  This means we leak the file descriptor in some cases or we could also try to close it twice. Make

Re: [Qemu-devel] RFC: raw device support for block device targets

2011-12-08 Thread Kevin Wolf
Am 06.12.2011 17:20, schrieb Alex Bligh: qemu-img convert appears to support block devices as input, but not as output. That is irritating, as when using qemu-img convert to convert qcow to raw on a block partition, an intermediate file has to be used, which slows things down and pointlessly

[Qemu-devel] [PATCH v4 07/15] i8259: Introduce backend/frontend infrastructure for KVM reuse

2011-12-08 Thread Jan Kiszka
Analogously to the APIC, we will reuse some parts of the user space i8259 model for KVM. Again, we create a PIC backend infrastructure and provide hooks for init, reset, and vmload/save. This also introduces a common helper to instantiate a single i8259 chip from the cascade- creating i8259_init

[Qemu-devel] qemu 1.0 : booting from scsi device (extboot removal)

2011-12-08 Thread Alexandre DERUMIER
Hi, I'm working on the proxmox 2.0 distribution (kvm distrib) and I'm trying to boot from scsi device with qemu 1.0. since this patch Remove extboot support -- Linux KVM http://www.spinics.net/lists/kvm/msg61865.html it does'nt work anymore. I know I can use lsi rom with -option-rom

[Qemu-devel] [PATCH v4 00/15] uq/master: Introduce basic irqchip support

2011-12-08 Thread Jan Kiszka
Changes in v4: - rebased of current uq/master - fixed stupid bugs that broke bisectability and user space irqchip mode - integrated NMI-over-LINT1 injection logic CC: Lai Jiangshan la...@cn.fujitsu.com Jan Kiszka (15): msi: Generalize msix_supported to msi_supported kvm: Move kvmclock into

[Qemu-devel] [PATCH v4 13/15] kvm: x86: Add user space part for in-kernel i8259

2011-12-08 Thread Jan Kiszka
Introduce the alternative i8259 backend that exploits KVM in-kernel acceleration. The PIIX3 initialization code is furthermore extended by KVM specific IRQ route setup. GSI injection differs in KVM mode from the user space model. As we can dispatch ISA-range IRQs to both IOAPIC and PIC inside the

[Qemu-devel] [PATCH v4 09/15] memory: Introduce memory_region_init_reservation

2011-12-08 Thread Jan Kiszka
Introduce a memory region type that can reserve I/O space. Such regions are useful for modeling I/O that is only handled outside of QEMU, i.e. in the context of an accelerator like KVM. Any access to such a region from QEMU is a bug, but could theoretically be triggered by guest code (DMA to

[Qemu-devel] [PATCH v4 12/15] kvm: x86: Add user space part for in-kernel APIC

2011-12-08 Thread Jan Kiszka
This introduces the alternative APIC backend which makes use of KVM's in-kernel device model. External NMI injection via LINT1 is emulated by checking the current state of the in-kernel APIC, only injecting a NMI into the VCPU if LINT1 is unmasked and configured to DM_NMI. MSI is not yet

Re: [Qemu-devel] [PATCH 2/2] net: take ownership of fd in socket init functions

2011-12-08 Thread Stefan Hajnoczi
On Thu, Dec 8, 2011 at 12:29 PM, Zhi Yong Wu zwu.ker...@gmail.com wrote: On Wed, Dec 7, 2011 at 11:01 PM, Stefan Hajnoczi stefa...@linux.vnet.ibm.com wrote: Today net/socket.c has no consistent policy for closing the socket file descriptor when initialization fails.  This means we leak the

[Qemu-devel] [PATCH v4 01/15] msi: Generalize msix_supported to msi_supported

2011-12-08 Thread Jan Kiszka
Rename msix_supported to msi_supported and control MSI and MSI-X activation this way. That was likely to original intention for this flag, but MSI support came after MSI-X. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- hw/msi.c |8 hw/msi.h |2 ++ hw/msix.c |9

Re: [Qemu-devel] qemu 1.0 : booting from scsi device (extboot removal)

2011-12-08 Thread Jan Kiszka
On 2011-12-08 13:41, Alexandre DERUMIER wrote: Hi, I'm working on the proxmox 2.0 distribution (kvm distrib) and I'm trying to boot from scsi device with qemu 1.0. since this patch Remove extboot support -- Linux KVM http://www.spinics.net/lists/kvm/msg61865.html it does'nt work

Re: [Qemu-devel] [PATCH 0/3] MIPS64 user mode emulation in QEMU

2011-12-08 Thread Andreas Färber
Am 08.12.2011 06:25, schrieb kha...@kics.edu.pk: From: Khansa Butt kha...@kics.edu.pk This is the team work of Ehsan-ul-Haq, Abdul Qadeer, Abdul Waheed, Khansa Butt from HPCN Lab KICS UET Lahore. In previous patch set we were including Cavium specific instructions along with Cavium

Re: [Qemu-devel] [PATCH v3] network scripts: don't block SIGCHLD before forking

2011-12-08 Thread Jan Kiszka
On 2011-12-08 04:48, Michael Roth wrote: This patch fixes a bug where child processes of launch_script() can misbehave due to SIGCHLD being blocked. In the case of `sudo`, this causes a permanent hang. Previously a SIGCHLD handler was added to reap fork_exec()'d zombie processes by calling

Re: [Qemu-devel] an error while loading checkpoint

2011-12-08 Thread sparsh mittal
I am using qemu as a part of Marss cycle-accurate simulator. http://marss86.org/~marss86/index.php/Home $ qemu/qemu-system-x86_64 -m 4G -snapshot -loadvm ffnn -vnc :3 -icount 0 -drive cache=unsafe,file=/local/sparsh/specimage_sftn3.qcow2 -simconfig MyConfigs/ffnn_100M.cfg Unknown savevm section

Re: [Qemu-devel] Error while booting

2011-12-08 Thread sparsh mittal
On Thu, Dec 8, 2011 at 6:20 AM, Kevin Wolf kw...@redhat.com wrote: Am 07.12.2011 17:26, schrieb sparsh mittal: I use version 0.15 of qemu with marss cycle-accurate simulator. After making checkpoints in an image, I get this error, while trying to boot it (i.e. not using loadvm to run

Re: [Qemu-devel] [PATCH v2 0/5] backdoor: lightweight guest-to-QEMU backdoor channel

2011-12-08 Thread Stefan Hajnoczi
2011/12/5 Lluís Vilanova vilan...@ac.upc.edu: Provides the ability for the guest to communicate with user-provided code inside QEMU itself, using a lightweight mechanism. See first commit for a full description. Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- First off, thank you

Re: [Qemu-devel] an error while loading checkpoint

2011-12-08 Thread Stefan Hajnoczi
On Thu, Dec 8, 2011 at 1:57 PM, sparsh mittal sparsh0mit...@gmail.com wrote: I am using qemu as a part of Marss cycle-accurate simulator. http://marss86.org/~marss86/index.php/Home $ qemu/qemu-system-x86_64 -m 4G -snapshot -loadvm ffnn -vnc :3 -icount 0 -drive

Re: [Qemu-devel] [PATCH] use pci macro in virtio

2011-12-08 Thread Jan Kiszka
On 2011-12-08 11:17, Stefan Hajnoczi wrote: On Thu, Dec 8, 2011 at 5:49 AM, hkran hk...@linux.vnet.ibm.com wrote: Signed-off-by: hkran hk...@linux.vnet.ibm.com Anthony asked that you put your real name in the Signed-off-by. You don't need to resend the patch, please just reply to this mail

Re: [Qemu-devel] [PATCH v2 2/3] qed: add zero write detection support

2011-12-08 Thread Mark Wu
I tried to optimize the zero detecting code with SSE instruction. The idea comes from Paolo's patch migration: vectorize is_dup_page. It's expected to give us an noticeable improvement. But I didn't find any improvement in the qemu-io test even though I increased the image size to 5GB. The

Re: [Qemu-devel] an error while loading checkpoint

2011-12-08 Thread sparsh mittal
On Thu, Dec 8, 2011 at 8:18 AM, Stefan Hajnoczi stefa...@gmail.com wrote: On Thu, Dec 8, 2011 at 1:57 PM, sparsh mittal sparsh0mit...@gmail.com wrote: I am using qemu as a part of Marss cycle-accurate simulator. http://marss86.org/~marss86/index.php/Home $ qemu/qemu-system-x86_64 -m 4G

Re: [Qemu-devel] Insane virtio-serial semantics

2011-12-08 Thread Anthony Liguori
On 12/08/2011 04:11 AM, Markus Armbruster wrote: Anthony Liguorianth...@codemonkey.ws writes: And yes, I can't help but think of Dave Millers comments long ago that any PV transport is eventually going to reinvent TCP, poorly. No doubt then, no doubt now. But if I remember correctly, we

Re: [Qemu-devel] [RFC] Device sandboxing

2011-12-08 Thread Corey Bryant
On 12/08/2011 04:47 AM, Stefan Hajnoczi wrote: On Wed, Dec 7, 2011 at 7:32 PM, Corey Bryantcor...@linux.vnet.ibm.com wrote: On 12/07/2011 01:48 PM, Anthony Liguori wrote: On 12/07/2011 12:25 PM, Corey Bryant wrote: * The trusted helper thread would run beside the untrusted thread,

Re: [Qemu-devel] an error while loading checkpoint

2011-12-08 Thread sparsh mittal
I also have question whether -icount 0 or -icount auto can make a simulation more deterministic and whether qemu is affected by the load on the host (i.e. how many processes are running?) I would be grateful for a reply. Thanks and Regards Sparsh Mittal On Thu, Dec 8, 2011 at 8:36 AM, sparsh

Re: [Qemu-devel] [libvirt] virDomainBlockJobAbort and block_job_cancel

2011-12-08 Thread Stefan Hajnoczi
On Wed, Dec 7, 2011 at 11:01 PM, Eric Blake ebl...@redhat.com wrote: On 12/07/2011 03:35 PM, Adam Litke wrote: 4) Ask Stefan to make the HMP monitor command synchronous, but only expose the JSON command as asynchronous.  After all, it is only HMP where we can't wait for an event. QEMU cannot

Re: [Qemu-devel] [libvirt] virDomainBlockJobAbort and block_job_cancel

2011-12-08 Thread Adam Litke
On Wed, Dec 07, 2011 at 04:01:58PM -0700, Eric Blake wrote: On 12/07/2011 03:35 PM, Adam Litke wrote: Stefan's qemu tree has a block_job_cancel command that always acts asynchronously. In order to provide the synchronous behavior in libvirt (when flags is 0), I need to wait for the

Re: [Qemu-devel] [PATCH 1/3] linux-user:Support for MIPS64 user mode emulation in QEMU

2011-12-08 Thread Andreas Färber
This is about QEMU and linux-user is the user mode emulation, so please change the subject to linux-user: Add support for MIPS64 (note the space that I reminded you of earlier, it looks weird without on Western left-to-right screens). Am 08.12.2011 06:25, schrieb kha...@kics.edu.pk: From: Khansa

Re: [Qemu-devel] [libvirt] virDomainBlockJobAbort and block_job_cancel

2011-12-08 Thread Stefan Hajnoczi
On Thu, Dec 8, 2011 at 2:55 PM, Adam Litke a...@us.ibm.com wrote: On Wed, Dec 07, 2011 at 04:01:58PM -0700, Eric Blake wrote: On 12/07/2011 03:35 PM, Adam Litke wrote: Stefan's qemu tree has a block_job_cancel command that always acts asynchronously.  In order to provide the synchronous

Re: [Qemu-devel] [PATCH v2 07/18] qom: add child properties (composition) (v2)

2011-12-08 Thread Kevin Wolf
Am 02.12.2011 21:20, schrieb Anthony Liguori: Child properties express a relationship of composition. Signed-off-by: Anthony Liguori aligu...@us.ibm.com --- v1 - v2 - fix comments (Kevin) - add a reference when adding a child property (Kevin) --- hw/qdev.c | 26

Re: [Qemu-devel] [PATCH v2 2/3] qed: add zero write detection support

2011-12-08 Thread Stefan Hajnoczi
On Thu, Dec 8, 2011 at 2:29 PM, Mark Wu wu...@linux.vnet.ibm.com wrote: I tried to optimize the zero detecting code with SSE instruction.   The idea comes from Paolo's patch migration: vectorize is_dup_page.  It's expected to give us an noticeable improvement. But I didn't find any improvement

Re: [Qemu-devel] Still build failure for qemu-1.0

2011-12-08 Thread Erik Rull
Aneesh Kumar K.V wrote: On Fri, 02 Dec 2011 14:22:03 +0100, erik.r...@rdsoftware.de wrote: Hi all, there was the promise to test the build failure from rc4 with the released version and that it should work. Its still present :-( please assist me here: CClibhw64/9pfs/coxattr.o CC

Re: [Qemu-devel] [PATCH v2 09/18] qapi: allow a 'gen' key to suppress code generation

2011-12-08 Thread Kevin Wolf
Am 02.12.2011 21:20, schrieb Anthony Liguori: Signed-off-by: Anthony Liguori aligu...@us.ibm.com --- scripts/qapi-commands.py |1 + scripts/qapi-types.py|1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/scripts/qapi-commands.py b/scripts/qapi-commands.py

Re: [Qemu-devel] [PATCH v2] trace: Provide a per-event status define for conditional compilation

2011-12-08 Thread Stefan Hajnoczi
2011/12/6 Lluís Vilanova vilan...@ac.upc.edu: Adds a 'TRACE_${NAME}_ENABLED' preprocessor define for each tracing event in trace.h. I think we should take it a step further: support TRACE_${NAME}_ENABLED at run-time. This means skipping the trace event code if the event is currently disabled.

Re: [Qemu-devel] [PATCH v2 13/18] dev: add an anonymous peripheral container

2011-12-08 Thread Kevin Wolf
Am 02.12.2011 21:20, schrieb Anthony Liguori: Signed-off-by: Anthony Liguori aligu...@us.ibm.com --- hw/qdev.c | 21 - 1 files changed, 20 insertions(+), 1 deletions(-) diff --git a/hw/qdev.c b/hw/qdev.c index af4c6a2..5348f26 100644 --- a/hw/qdev.c +++ b/hw/qdev.c

Re: [Qemu-devel] [PATCH v2 13/18] dev: add an anonymous peripheral container

2011-12-08 Thread Anthony Liguori
On 12/08/2011 10:27 AM, Kevin Wolf wrote: Am 02.12.2011 21:20, schrieb Anthony Liguori: Signed-off-by: Anthony Liguorialigu...@us.ibm.com --- hw/qdev.c | 21 - 1 files changed, 20 insertions(+), 1 deletions(-) diff --git a/hw/qdev.c b/hw/qdev.c index af4c6a2..5348f26

Re: [Qemu-devel] [PATCH v2 07/18] qom: add child properties (composition) (v2)

2011-12-08 Thread Anthony Liguori
On 12/08/2011 09:38 AM, Kevin Wolf wrote: Am 02.12.2011 21:20, schrieb Anthony Liguori: Child properties express a relationship of composition. Signed-off-by: Anthony Liguorialigu...@us.ibm.com --- v1 - v2 - fix comments (Kevin) - add a reference when adding a child property (Kevin) ---

Re: [Qemu-devel] [PATCH v2 09/18] qapi: allow a 'gen' key to suppress code generation

2011-12-08 Thread Anthony Liguori
On 12/08/2011 10:04 AM, Kevin Wolf wrote: Am 02.12.2011 21:20, schrieb Anthony Liguori: Signed-off-by: Anthony Liguorialigu...@us.ibm.com --- scripts/qapi-commands.py |1 + scripts/qapi-types.py|1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git

Re: [Qemu-devel] [PATCH 0/2] qemu-io tests: More fine grained control of qemu paths

2011-12-08 Thread Christoph Hellwig
Thanks a lot Lucas, I've applied the patches. And sorry for the delay, I'm pretty busy at the moment.

Re: [Qemu-devel] [PATCH v2] trace: Provide a per-event status define for conditional compilation

2011-12-08 Thread Lluís Vilanova
Stefan Hajnoczi writes: 2011/12/6 Lluís Vilanova vilan...@ac.upc.edu: Adds a 'TRACE_${NAME}_ENABLED' preprocessor define for each tracing event in trace.h. I think we should take it a step further: support TRACE_${NAME}_ENABLED at run-time. This means skipping the trace event code if the

[Qemu-devel] [RFC] qemu-ga: Introduce guest-hibernate command

2011-12-08 Thread Luiz Capitulino
This is basically suspend to disk on a Linux guest. Signed-off-by: Luiz Capitulino lcapitul...@redhat.com --- This is an RFC because I did it as simple as possible and I'm open to suggestions... Now, while testing this or even echo disk /sys/power/state I get several funny results. Some times

Re: [Qemu-devel] [PATCH v2 0/5] backdoor: lightweight guest-to-QEMU backdoor channel

2011-12-08 Thread Lluís Vilanova
Stefan Hajnoczi writes: [...] * Support for tracing guest code through TCG. I'm not clear on whether a backdoor mechanism is needed or not. A backdoor mechanism allows a modified guest to participate in tracing. Depending on the type of analysis you are doing it might be possible to

Re: [Qemu-devel] [PATCH V4 00/13] Proxy FS driver for VirtFS

2011-12-08 Thread Stefan Hajnoczi
On Mon, Dec 05, 2011 at 09:48:37PM +0530, M. Mohan Kumar wrote: From: M. Mohan Kumar mo...@in.ibm.com Pass-through security model in QEMU 9p server needs root privilege to do few file operations (like chown, chmod to any mode/uid:gid). There are two issues in pass-through security model

Re: [Qemu-devel] [PATCH V4 02/13] hw/9pfs: Add validation to {un}marshal code

2011-12-08 Thread Stefan Hajnoczi
On Mon, Dec 05, 2011 at 09:48:39PM +0530, M. Mohan Kumar wrote: @@ -187,59 +190,70 @@ size_t v9fs_unmarshal(struct iovec *out_sg, int out_num, size_t offset, } case 's': { V9fsString *str = va_arg(ap, V9fsString *); -offset +=

Re: [Qemu-devel] [PATCH V4 04/13] hw/9pfs: File system helper process for qemu 9p proxy FS

2011-12-08 Thread Stefan Hajnoczi
On Mon, Dec 05, 2011 at 09:48:41PM +0530, M. Mohan Kumar wrote: +static int read_request(int sockfd, struct iovec *iovec, ProxyHeader *header) +{ +int retval; + +/* + * read the request header. + */ +iovec-iov_len = 0; +retval = socket_read(sockfd, iovec-iov_base,

Re: [Qemu-devel] [RFC] qemu-ga: Introduce guest-hibernate command

2011-12-08 Thread Daniel P. Berrange
On Thu, Dec 08, 2011 at 04:52:58PM -0200, Luiz Capitulino wrote: This is basically suspend to disk on a Linux guest. Now, while testing this or even echo disk /sys/power/state I get several funny results. Some times qemu just dies after printing that message: I think you should really be

Re: [Qemu-devel] [RFC] qemu-ga: Introduce guest-hibernate command

2011-12-08 Thread Luiz Capitulino
On Thu, 8 Dec 2011 19:07:00 + Daniel P. Berrange berra...@redhat.com wrote: On Thu, Dec 08, 2011 at 04:52:58PM -0200, Luiz Capitulino wrote: This is basically suspend to disk on a Linux guest. Now, while testing this or even echo disk /sys/power/state I get several funny results.

[Qemu-devel] Dropping the MONITOR_CMD_ASYNC

2011-12-08 Thread Luiz Capitulino
Hi there, I'm about to completely drop the MONITOR_CMD_ASYNC API, but it turns out that the command client_migrate_info uses it. That's a legacy interface and has to be dropped, no command should be using it... Something tells me that if I just drop it (and change the command to use the regular

Re: [Qemu-devel] [PULL 00/35] VMState port of all cpus

2011-12-08 Thread Blue Swirl
On Wed, Dec 7, 2011 at 18:42, Juan Quintela quint...@redhat.com wrote: The following changes since commit 217bfb445b54db618a30f3a39170bebd9fd9dbf2:  hw/arm_gic.c: Ignore attempts to complete nonexistent IRQs (2011-12-05 21:38:56 +0100) are available in the git repository at:  

Re: [Qemu-devel] [PATCH v2 0/5] backdoor: lightweight guest-to-QEMU backdoor channel

2011-12-08 Thread Blue Swirl
On Wed, Dec 7, 2011 at 18:54, Anthony Liguori anth...@codemonkey.ws wrote: On 12/07/2011 12:51 PM, Peter Maydell wrote: 2011/12/7 Lluís Vilanovavilan...@ac.upc.edu: Anthony Liguori writes: [...] Why should this analyzer live outside of QEMU in the first place?  I fail to see the

Re: [Qemu-devel] [PATCH v2 0/5] backdoor: lightweight guest-to-QEMU backdoor channel

2011-12-08 Thread Blue Swirl
2011/12/8 Lluís Vilanova vilan...@ac.upc.edu: Stefan Hajnoczi writes: [...] * Support for tracing guest code through TCG. I'm not clear on whether a backdoor mechanism is needed or not.  A backdoor mechanism allows a modified guest to participate in tracing. Depending on the type of

Re: [Qemu-devel] [PATCH v4 12/15] kvm: x86: Add user space part for in-kernel APIC

2011-12-08 Thread Blue Swirl
On Thu, Dec 8, 2011 at 11:52, Jan Kiszka jan.kis...@siemens.com wrote: This introduces the alternative APIC backend which makes use of KVM's in-kernel device model. External NMI injection via LINT1 is emulated by checking the current state of the in-kernel APIC, only injecting a NMI into the

Re: [Qemu-devel] [PATCH v4 00/15] uq/master: Introduce basic irqchip support

2011-12-08 Thread Blue Swirl
On Thu, Dec 8, 2011 at 11:52, Jan Kiszka jan.kis...@siemens.com wrote: Changes in v4: - rebased of current uq/master - fixed stupid bugs that broke bisectability and user space irqchip mode - integrated NMI-over-LINT1 injection logic I had comments to one patch, others look fine. Overall,

Re: [Qemu-devel] [PATCH] tcg: Remove redundant declarations of TCG_TARGET_REG_BITS

2011-12-08 Thread Stuart Brady
On Thu, Dec 08, 2011 at 08:19:45AM +0100, Stefan Weil wrote: Am 08.12.2011 08:03, schrieb 陳韋任: On Wed, Dec 07, 2011 at 11:31:46PM +0100, Stefan Weil wrote: TCG_TARGET_REG_BITS is declared in tcg.h for all TCG targets. Just want to make sure. When we talk about target in TCG, that _always_

Re: [Qemu-devel] [RFC] Device sandboxing

2011-12-08 Thread Blue Swirl
On Wed, Dec 7, 2011 at 18:25, Corey Bryant cor...@linux.vnet.ibm.com wrote: A group of us are starting to work on sandboxing QEMU device emulation code.  We're just getting started investigating various approaches, and want to engage the community to gather input. Following are the design

Re: [Qemu-devel] [PATCH v2 0/5] backdoor: lightweight guest-to-QEMU backdoor channel

2011-12-08 Thread Lluís Vilanova
Blue Swirl writes: 2011/12/8 Lluís Vilanova vilan...@ac.upc.edu: Stefan Hajnoczi writes: [...] * Support for tracing guest code through TCG. I'm not clear on whether a backdoor mechanism is needed or not.  A backdoor mechanism allows a modified guest to participate in tracing.

Re: [Qemu-devel] [PATCH] pc: map pc ram from user-specified file

2011-12-08 Thread Peter Feiner
Do you have any performance number for this?  And examples on how your are using it? Our principal use case is implementing VM migration techniques. There are other uses of a RAM file interface that I can imagine: - debugging, e.g., inspecting the memory of a VM after it has crashed -

[Qemu-devel] [RFC][PATCH 00/10] trace-tcg: Allow tracing guest events in TCG-generated code

2011-12-08 Thread Lluís Vilanova
Adds the basic ability to specify which events in the trace-events may be used to trace guest activity in the TCG code. Such events generate an extra set of tracing functions that can be called during TCG code generation and will automatically redirect a call to the appropriate backend-dependant

[Qemu-devel] [PATCH 01/10] trace: [doc] Document event properties on a separate section

2011-12-08 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- docs/tracing.txt | 22 -- 1 files changed, 16 insertions(+), 6 deletions(-) diff --git a/docs/tracing.txt b/docs/tracing.txt index ea29f2c..853cbf8 100644 --- a/docs/tracing.txt +++ b/docs/tracing.txt @@ -98,12 +98,6 @@

[Qemu-devel] [PATCH 02/10] trace-tcg: Add documentation

2011-12-08 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- docs/tracing.txt | 40 1 files changed, 40 insertions(+), 0 deletions(-) diff --git a/docs/tracing.txt b/docs/tracing.txt index 853cbf8..44c5dba 100644 --- a/docs/tracing.txt +++ b/docs/tracing.txt

[Qemu-devel] [PATCH 03/10] Trivial changes to eliminate auto-generated files

2011-12-08 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- Makefile | 11 --- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 301c75e..506db1b 100644 --- a/Makefile +++ b/Makefile @@ -3,10 +3,14 @@ # Always point to the root of the build tree (needs

[Qemu-devel] [PATCH 04/10] [m68k, s390, xtensa] Move helpers.h to helper.h

2011-12-08 Thread Lluís Vilanova
This provides a consistent file naming scheme across all targets. Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- target-m68k/helper.c |2 - target-m68k/helper.h | 54 target-m68k/helpers.h | 54 target-m68k/op_helper.c |2 -

[Qemu-devel] [PATCH 05/10] trace: [tracetool] Common functions to manage event arguments

2011-12-08 Thread Lluís Vilanova
This adds: * zip_lists: Pair elements from two lists. * get_argtypes: Get the list of types of the arguments; can optionally transform the types in the process. The function 'get_args' is modified to use a combination of 'get_argnames', 'get_argtypes', 'zip_lists' and, optionally, use the type

[Qemu-devel] [PATCH 06/10] trace: [tracetool] Add 'get_api_name' to construct the name of tracing routines

2011-12-08 Thread Lluís Vilanova
All backends now use 'get_api_name' to build the name of the routines that are used by QEMU code when invoking trace points. This is built based on the value of 'get_api_name_fmt_default'. The old 'get_name' is still available to refer to the name of an event. This ensures proper naming across

[Qemu-devel] [PATCH 07/10] trace-tcg: [tracetool] Allow TCG types in trace event declarations

2011-12-08 Thread Lluís Vilanova
When found, TCG types are translated into the host native types when declaring and defining the tracing routines in trace.h and trace.c. --- scripts/tracetool | 31 +++ 1 files changed, 23 insertions(+), 8 deletions(-) diff --git a/scripts/tracetool

[Qemu-devel] [PATCH 08/10] trace-tcg: [tracetool] Declare TCG tracing helper routines

2011-12-08 Thread Lluís Vilanova
Generate the necessary TCG helper declarations for tracing events in guest code. Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- .gitignore |1 Makefile |2 Makefile.objs |9 ++ def-helper.h |9 ++ scripts/simpletrace.py |2

[Qemu-devel] [PATCH 10/10] trace-tcg: [all] Include TCG-tracing helpers

2011-12-08 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- target-alpha/helper.h |2 ++ target-arm/helper.h|2 ++ target-cris/helper.h |2 ++ target-i386/helper.h |2 ++ target-lm32/helper.h |2 ++ target-m68k/helper.h |2 ++

Re: [Qemu-devel] [PATCH 1/2] guest agent: add RPC blacklist command-line option

2011-12-08 Thread Dor Laor
On 12/07/2011 06:45 PM, Michael Roth wrote: On 12/07/2011 06:12 AM, Dor Laor wrote: On 12/07/2011 12:52 PM, Daniel P. Berrange wrote: On Wed, Dec 07, 2011 at 12:34:01PM +0200, Dor Laor wrote: On 12/07/2011 06:03 AM, Michael Roth wrote: This adds a command-line option, -b/--blacklist, that

[Qemu-devel] [PATCH 09/10] trace-tcg: [tracetool] Define TCG tracing helper routines

2011-12-08 Thread Lluís Vilanova
Generate the necessary TCG helper routines for tracing events in guest code. Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- .gitignore|1 + Makefile |2 +- Makefile.objs |8 +++ Makefile.target |2 ++ scripts/tracetool | 65

Re: [Qemu-devel] [RFC] qemu-ga: Introduce guest-hibernate command

2011-12-08 Thread Andreas Färber
Am 08.12.2011 19:52, schrieb Luiz Capitulino: This is basically suspend to disk on a Linux guest. Signed-off-by: Luiz Capitulino lcapitul...@redhat.com --- This is an RFC because I did it as simple as possible and I'm open to suggestions... Now, while testing this or even echo disk

Re: [Qemu-devel] [PATCH 2/2] configure: remove --enable-cocoa (default), add --disable-cocoa.

2011-12-08 Thread Andreas Färber
Am 07.12.2011 22:21, schrieb Peter Maydell: On 7 December 2011 21:12, Andreas Färber andreas.faer...@web.de wrote: Note that I have a patch that replaces uint16 with uint_fast16_t, properly fixing the Cocoa build. What I don't have yet is all the other conversions (Coccinelle doesn't fully do

Re: [Qemu-devel] [PATCH 1/2] guest agent: add RPC blacklist command-line option

2011-12-08 Thread Michael Roth
On 12/08/2011 04:53 PM, Dor Laor wrote: On 12/07/2011 06:45 PM, Michael Roth wrote: On 12/07/2011 06:12 AM, Dor Laor wrote: On 12/07/2011 12:52 PM, Daniel P. Berrange wrote: On Wed, Dec 07, 2011 at 12:34:01PM +0200, Dor Laor wrote: On 12/07/2011 06:03 AM, Michael Roth wrote: This adds a

Re: [Qemu-devel] [PATCH 2/3] target-mips:enabling of 64 bit user mode and floating point operations MIPS_HFLAG_UX is included in env-hflags so that the address computation for LD instruction does not

2011-12-08 Thread Andreas Färber
Thanks for extending the commit description. Please see this for a template though: http://live.gnome.org/Git/CommitMessages Looks like there's an empty line missing between subject and description (and the space after target-mips:). Am 08.12.2011 06:25, schrieb kha...@kics.edu.pk: From:

Re: [Qemu-devel] [PATCH 1/3] linux-user:Support for MIPS64 user mode emulation in QEMU

2011-12-08 Thread Andreas Färber
Am 08.12.2011 16:15, schrieb Andreas Färber: diff --git a/configure b/configure index ac4840d..e31229b 100755 --- a/configure +++ b/configure @@ -914,6 +914,7 @@ m68k-linux-user \ microblaze-linux-user \ microblazeel-linux-user \ mips-linux-user \ +mips64-linux-user \

  1   2   >