[Qemu-devel] Re: [PATCH 2/2] msix: Pull in config.h for CONFIG_KVM

2010-10-22 Thread Alex Williamson
On Fri, 2010-10-22 at 14:40 -0600, Alex Williamson wrote: > We need to pull in config.h or else kvm.h doesn't pull in > linux/config.h, which we need if we ever want KVM_CAP_IRQCHIP > defined. This requires moving the object over to Makefile.target > or else we can't find config-target.h > > Sign

[Qemu-devel] Offerta

2010-10-22 Thread Tipografia
TIPOGRAFIA e STAMPA DIGITALE www.tipoprint.com Tel: 02 89 92 67 50 Gentile Cliente, Crediamo sia cosa gradita farvi pervenire questa nostra offerta relativa ai nostri stampati. E' una occasione da non perdere anche perche' potrete sfruttare questa offerta per tutto il 2010 a sola condizione che ri

Re: [Qemu-devel] KVM call minutes for Oct 19

2010-10-22 Thread Chris Wright
* Anthony Liguori (anth...@codemonkey.ws) wrote: > On 10/22/2010 01:20 PM, Chris Wright wrote: > >I'm not sure about that. That same new shiny Fedora 21 QEMU has no idea > >what the right OS specific command to run in guest is. Granted, it's > >not likely that "reboot" or "shutdown -r now" are li

[Qemu-devel] [PATCH 4/4] target-xxx: Use fprintf_function (format checking)

2010-10-22 Thread Stefan Weil
fprintf_function uses format checking with GCC_FMT_ATTR. Format errors were fixed in * target-i386/helper.c * target-mips/translate.c * target-ppc/translate.c Cc: Blue Swirl Signed-off-by: Stefan Weil --- cpu-all.h |8 +++- cpus.c|3 +--

[Qemu-devel] [PATCH 2/4] tcg: Use fprintf_function (format checking)

2010-10-22 Thread Stefan Weil
fprintf_function uses format checking with GCC_FMT_ATTR. Cc: Blue Swirl Signed-off-by: Stefan Weil --- tcg/tcg.c |6 ++ tcg/tcg.h |3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/tcg/tcg.c b/tcg/tcg.c index 0cdef0d..5dd6a2c 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.

[Qemu-devel] [PATCH 3/4] exec: Use fprintf_function for dump_exec_info (format checking)

2010-10-22 Thread Stefan Weil
fprintf_function uses format checking with GCC_FMT_ATTR. It is declared in qemu-common.h and used in cpu-all.h (which is included from cpu.h), so qemu-common.h must be included earlier. Some redundant include statements for standard include files were removed. Fix also two format errors (ptrdiff_

[Qemu-devel] [PATCH 1/4] Add fprintf_function for function pointers to fprintf-like functions

2010-10-22 Thread Stefan Weil
This kind of function pointers is used very often in qemu. The new data type uses format checking with GCC_FMT_ATTR and will be used in later patches. Cc: Blue Swirl Signed-off-by: Stefan Weil --- qemu-common.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/qemu-com

Re: [Qemu-devel] [PATCH 2/4] Silence compiler warning in json test case

2010-10-22 Thread Stefan Weil
Am 22.10.2010 19:33, schrieb Luiz Capitulino: On Fri, 22 Oct 2010 19:15:07 +0200 Markus Armbruster wrote: Luiz Capitulino writes: From: Jan Kiszka This avoids error: zero-length gnu_printf format string Signed-off-by: Jan Kiszka Signed-off-by: Luiz Capitulino --- check-q

[Qemu-devel] [PATCH 2/2] msix: Pull in config.h for CONFIG_KVM

2010-10-22 Thread Alex Williamson
We need to pull in config.h or else kvm.h doesn't pull in linux/config.h, which we need if we ever want KVM_CAP_IRQCHIP defined. This requires moving the object over to Makefile.target or else we can't find config-target.h Signed-off-by: Alex Williamson --- Makefile.objs |2 -- Makefile.

[Qemu-devel] [PATCH 1/2] msix: Allow msix_init on a device with existing MSI-X capability

2010-10-22 Thread Alex Williamson
To enable common msix support to be used with pass through devices, don't attempt to change the BAR if the device already has an MSI-X capability. This also means we want to pay closer attention to the size when we map the msix table page, as it isn't necessarily covering the entire end of the BAR

[Qemu-devel] [PATCH 0/2] msix: couple fixes

2010-10-22 Thread Alex Williamson
I've been porting the qemu vfio driver to use the common msix infrastructure and hit a couple issues. The first patch addresses the problem that a device may already have MSI-X capability setup and non-adjustable BARs, so msix_init should be able to use the existing capability instead of adding it

[Qemu-devel] [PATCH 06/18] backdoor: [i386] Declare guest-side interface macros

2010-10-22 Thread Lluís
Guest-side macros to generate backdoor instructions. Signed-off-by: Lluís Vilanova --- backdoor/guest.h | 24 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/backdoor/guest.h b/backdoor/guest.h index 58847e2..17029d3 100644 --- a/backdoor/guest.h +++ b

[Qemu-devel] [PATCH 10/18] instrument: Dynamic per-CPU state of static instrumentation points

2010-10-22 Thread Lluís
The user-provided implementation for instrumentation points can define and use "instrumentation types" as the atomic unit of instrumentation point (de)activation. The set of "instrumentation types" is named as "instrumentation state" (just a bitset, one bit per type), which can be independently c

[Qemu-devel] [PATCH 05/18] backdoor: [i386] Decode backdoor instructions

2010-10-22 Thread Lluís
Decode backdoor instructions following "backdoor/guest.h" and call the user-defined backdoor helpers. Signed-off-by: Lluís Vilanova --- target-i386/translate.c | 30 ++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/target-i386/translate.c b/target

[Qemu-devel] [PATCH 09/18] instrument: Add initial instrumentation example

2010-10-22 Thread Lluís
--- .gitignore |1 + instrument/examples/dynprint/README| 16 +++ instrument/examples/dynprint/guest/Makefile|7 +++ instrument/examples/dynprint/guest/test.c | 39 + instrument/examples/dynpr

[Qemu-devel] [PATCH 11/18] instrument: Code-generation macros

2010-10-22 Thread Lluís
Provides some code-generation macros intended to be used by the user when generating code on instrumentation points. Signed-off-by: Lluís Vilanova --- cpu-all.h |2 + instrument/generate.h | 124 + instrument/types.h| 33 +++

[Qemu-devel] [PATCH 13/18] instrument: Add FETCH point

2010-10-22 Thread Lluís
Signed-off-by: Lluís Vilanova --- cpu-all.h |6 +++ instrument/examples/dynprint/guest/test.c | 10 + instrument/examples/dynprint/host/backdoor.c |8 instrument/examples/dynprint/host/helpers.c| 43

[Qemu-devel] [PATCH 07/18] backdoor: Add a simple example

2010-10-22 Thread Lluís
Provides a guest application that exercices the instruction-based backdoor communication, as well as a backdoor callback implementation that prints the guest requests. Signed-off-by: Lluís Vilanova --- .gitignore |1 + backdoor/examples/print/README | 1

[Qemu-devel] [PATCH 18/18] instrument: [i386] Call PLVL point

2010-10-22 Thread Lluís
Signed-off-by: Lluís Vilanova --- instrument/host.h | 31 --- target-i386/cpu.h | 21 +++-- 2 files changed, 11 insertions(+), 41 deletions(-) delete mode 100644 instrument/host.h diff --git a/instrument/host.h b/instrument/host.h deleted file mo

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

2010-10-22 Thread Michael Roth
This set of patches is meant to be applied on top of the Virtproxy v1 patchset. OVERVIEW: There are a wide range of use cases motivating the need for a guest agent of some sort to extend the functionality/usability/control offered by QEMU. Some examples include graceful guest shutdown/reboot an

[Qemu-devel] [PATCH 12/18] instrument: [all] Include instrumentation helper declarations

2010-10-22 Thread Lluís
--- target-alpha/helper.h |4 target-arm/helper.h|4 target-cris/helper.h |4 target-i386/helper.h |4 target-m68k/helper.h |4 target-microblaze/helper.h |4 target-mips/helper.h |4 target-ppc/he

[Qemu-devel] [PATCH 04/18] backdoor: Declare guest-side interface macros

2010-10-22 Thread Lluís
Header for the user to include when compiling guest applications that want to communicate with QEMU through backdoor instructions. Signed-off-by: Lluís Vilanova --- backdoor/guest.h | 36 1 files changed, 36 insertions(+), 0 deletions(-) create mode 10064

[Qemu-devel] [PATCH 17/18] instrument: Add PLVL point

2010-10-22 Thread Lluís
Signed-off-by: Lluís Vilanova --- instrument/examples/dynprint/guest/test.c |1 + .../examples/dynprint/host/instrument-host.h | 21 --- instrument/host-stub.h |7 ++ 3 files changed, 25 insertions(+), 4 deletions(-) diff

[Qemu-devel] [RFC][PATCH 13/15] virtproxy: add read handler for proxied connections

2010-10-22 Thread Michael Roth
reads data from client/server connections as they become readable, then sends the data over the channel Signed-off-by: Michael Roth --- virtproxy.c | 80 +++ 1 files changed, 80 insertions(+), 0 deletions(-) diff --git a/virtproxy.c b/vi

Re: [Qemu-devel] [PATCH] Refactor flush of per-CPU virtual TB cache

2010-10-22 Thread Lluís
Nathan Froyd writes: > On Tue, Oct 19, 2010 at 09:57:13PM +0200, Lluís wrote: >> --- a/exec.c >> +++ b/exec.c >> @@ -688,6 +688,11 @@ static void page_flush_tb(void) >> } >> } >> >> +void tb_flush_jmp_cache (CPUState * env) >> +{ >> +memset (env->tb_jmp_cache, 0, TB_JMP_CACHE_SIZE * sizeof (v

[Qemu-devel] [RFC][PATCH 04/15] virtproxy: list look-up functions conns/oforwards/iforwards

2010-10-22 Thread Michael Roth
Signed-off-by: Michael Roth --- virtproxy.c | 44 1 files changed, 44 insertions(+), 0 deletions(-) diff --git a/virtproxy.c b/virtproxy.c index 2f8996c..fa17722 100644 --- a/virtproxy.c +++ b/virtproxy.c @@ -149,3 +149,47 @@ static QemuOptsList vp

[Qemu-devel] [PATCH 16/18] instrument: [all] Call VMEM point

2010-10-22 Thread Lluís
Signed-off-by: Lluís Vilanova --- cpu-all.h | 59 +--- exec-all.h|2 + linux-user/main.c | 12 softmmu_header.h | 15 ++ target-alpha/translate.c |4 +++ targe

[Qemu-devel] [PATCH] (master, stable-0.13) Fix a make -j race

2010-10-22 Thread Juergen Lock
Signed-off-by: Juergen Lock --- a/Makefile +++ b/Makefile @@ -114,7 +114,7 @@ bt-host.o: QEMU_CFLAGS += $(BLUEZ_CFLAGS ## qemu-img.o: qemu-img-cmds.h -qemu-img.o qemu-tool.o qemu-nbd.o qemu-io.o: $(GENERATED_HEADERS) +qemu-im

[Qemu-devel] [PATCH 08/18] instrument: Handle config-time activation

2010-10-22 Thread Lluís
Add a '--with-instrument' configuration option pointing to user-provided instrumentation callbacks. Make is invoked on the user-provided directory, which must build a static library that might contain extra code needed by the user-provided instrumentation. Signed-off-by: Lluís Vilanova --- Mak

[Qemu-devel] [PATCH 14/18] instrument: [i386] Call FETCH point

2010-10-22 Thread Lluís
Provides an instrumentation point for instruction fetch/decode events. Signed-off-by: Lluís Vilanova --- target-i386/translate.c | 113 +++ 1 files changed, 113 insertions(+), 0 deletions(-) diff --git a/target-i386/translate.c b/target-i386/transla

[Qemu-devel] [PATCH 15/18] instrument: Add VMEM point

2010-10-22 Thread Lluís
Signed-off-by: Lluís Vilanova --- instrument/examples/dynprint/host/helpers.c| 24 ++ .../dynprint/host/instrument-host-helpers.h|1 + .../examples/dynprint/host/instrument-host.h | 19 instrument/gen-vmem-wrappers.h | 88 +

[Qemu-devel] [PATCH 02/18] backdoor: Declare host-side backdoor helpers

2010-10-22 Thread Lluís
These helpers must be implemented by the user on "libbackdoor.a". Signed-off-by: Lluís Vilanova --- backdoor/helper.h | 21 + 1 files changed, 21 insertions(+), 0 deletions(-) create mode 100644 backdoor/helper.h diff --git a/backdoor/helper.h b/backdoor/helper.h new file

[Qemu-devel] [PATCH 03/18] backdoor: [all] Include backdoor helper declarations

2010-10-22 Thread Lluís
Signed-off-by: Lluís Vilanova --- target-alpha/helper.h |4 target-arm/helper.h|4 target-cris/helper.h |4 target-i386/helper.h |4 target-m68k/helper.h |4 target-microblaze/helper.h |4 target-mips/helper.h

[Qemu-devel] [PATCH 01/18] backdoor: Handle config-time activation

2010-10-22 Thread Lluís
Add a '--with-backdoor' configuration option pointing to user-provided backdoor callback implementation. Make is invoked on the user-provided directory, which must build a static library containing, at least, the implementation of the backdoor helpers. Signed-off-by: Lluís Vilanova --- Makefile

[Qemu-devel] [PATCH] [virtio-9p] Add datasync to server side TFSYNC/RFSYNC for dotl

2010-10-22 Thread Venkateswararao Jujjuri (JV)
SYNOPSIS size[4] Tfsync tag[2] fid[4] datasync[4] size[4] Rfsync tag[2] DESCRIPTION The Tfsync transaction transfers ("flushes") all modified in-core data of file identified by fid to the disk device (or other permanent storage device) where that file resides. If da

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

2010-10-22 Thread Michael Roth
Add RPC to view guest dmesg output. Signed-off-by: Michael Roth --- virtagent-daemon.c | 45 + virtagent-daemon.h |1 + 2 files changed, 46 insertions(+), 0 deletions(-) diff --git a/virtagent-daemon.c b/virtagent-daemon.c index fad0f64..6aaa987

Re: [Qemu-devel] [PATCH] Refactor flush of per-CPU virtual TB cache

2010-10-22 Thread Nathan Froyd
On Tue, Oct 19, 2010 at 09:57:13PM +0200, Lluís wrote: > --- a/exec.c > +++ b/exec.c > @@ -688,6 +688,11 @@ static void page_flush_tb(void) > } > } > > +void tb_flush_jmp_cache (CPUState * env) > +{ > +memset (env->tb_jmp_cache, 0, TB_JMP_CACHE_SIZE * sizeof (void *)); > +} > + This is

[Qemu-devel] [PATCH 00/17] [RFC] static instrumentation

2010-10-22 Thread Lluís
Sorry, the last cover had a bad starting commit. Patches continue from here. -- "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth

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

2010-10-22 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 --- virtagent-daemon.c | 5

[Qemu-devel] [RFC][PATCH 15/15] virtproxy: qemu-vp, main logic

2010-10-22 Thread Michael Roth
Signed-off-by: Michael Roth --- Makefile |2 +- qemu-vp.c | 469 - 2 files changed, 469 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 53b58d2..2dd64a3 100644 --- a/Makefile +++ b/Makefile @@ -135,7 +135,7 @

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

2010-10-22 Thread Michael Roth
Signed-off-by: Michael Roth --- Makefile|2 +- Makefile.target |2 +- configure | 25 + 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2dd64a3..b513d33 100644 --- a/Makefile +++ b/Makefile @@ -135,7 +135,7

Re: [Qemu-devel] KVM call minutes for Oct 19

2010-10-22 Thread Anthony Liguori
On 10/22/2010 01:20 PM, Chris Wright wrote: * Anthony Liguori (anth...@codemonkey.ws) wrote: On 10/22/2010 12:29 PM, Chris Wright wrote: * Anthony Liguori (anth...@codemonkey.ws) wrote: The first step is just identifying what interfaces we need in a guest agent. So far, I th

[Qemu-devel] [RFC][PATCH 10/10] virtproxy: add compat defs for linking against vl.c

2010-10-22 Thread Michael Roth
Virtagent depends on basic qemu functions re-implemented by qemu-vp to allow it to be used in output of qemu (in particular, to allow the client code to be used for guest-to-host RPC calls). To build virtagent into qemu we need to define these in terms of the built-in qemu functions. Signed-off-by

[Qemu-devel] [RFC][PATCH 04/10] virtagent: base RPC client definitions

2010-10-22 Thread Michael Roth
Base skeleton and helpers for executing RPC commands. Monitor commands will result in a connect() being issued to the virtagent service socket, which will then be transported to the listening RPC server in the guest via the virtproxy layer, RPC requests are then sent/recieved via http over the resu

[Qemu-devel] [RFC][PATCH 03/10] virtagent: qemu-vp, integrate virtagent daemon

2010-10-22 Thread Michael Roth
This allows the host or guest RPC server to be forked off from the qemu-vp instance handling the communication between the host/guest. Eventually this will be rolled into a virtagent init that can be used by both qemu-vp and qemu (in anticipation of integrating qemu-vp/virtproxy as a chardev). Sig

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

2010-10-22 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 08/10] virtagent: add agent_viewdmesg command

2010-10-22 Thread Michael Roth
Add commands to view guest dmesg output. Currently it is a 16K buffer. Signed-off-by: Michael Roth --- hmp-commands.hx | 16 + qmp-commands.hx | 35 +++ virtagent.c | 100 +++ virtagent.h |3 ++ 4 files

[Qemu-devel] [RFC][PATCH 05/15] virtproxy: add accept handler for communication channel

2010-10-22 Thread Michael Roth
This accept()'s connections to the socket we told virt-proxy to listen for the channel connection on and sets the appropriate read handler for the resulting FD. Signed-off-by: Michael Roth --- virtproxy.c | 37 + 1 files changed, 37 insertions(+), 0 deletion

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

2010-10-22 Thread Michael Roth
Common code for sending/recieving RPCs via http over virtproxy channel. Eventually these will all be switched to asynchronous handlers to avoid deadlocks between qemu and the guest. For now we can usually get away with just doing asynchronous reads for http/RPC responses if we don't send large RPC

[Qemu-devel] [RFC][PATCH 14/15] virtproxy: Makefile/configure changes to build qemu-vp

2010-10-22 Thread Michael Roth
Signed-off-by: Michael Roth --- .gitignore |1 + Makefile |4 +++- configure |1 + 3 files changed, 5 insertions(+), 1 deletions(-) diff --git a/.gitignore b/.gitignore index a43e4d1..da307d2 100644 --- a/.gitignore +++ b/.gitignore @@ -31,6 +31,7 @@ qemu-img-cmds.texi qemu-img-

[Qemu-devel] [RFC][PATCH 02/10] virtagent: base definitions for host/guest RPC daemon

2010-10-22 Thread Michael Roth
Basic skeleton code for RPC daemon loop. 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 --- virtagent-daemon.c | 118 vir

[Qemu-devel] [RFC][PATCH 12/15] virtproxy: interfaces to set/remove VPIForwards

2010-10-22 Thread Michael Roth
Signed-off-by: Michael Roth --- virtproxy.c | 59 +++ virtproxy.h |2 ++ 2 files changed, 61 insertions(+), 0 deletions(-) diff --git a/virtproxy.c b/virtproxy.c index 5ec4e77..86a8e5b 100644 --- a/virtproxy.c +++ b/virtproxy.c @@ -6

[Qemu-devel] [PATCH 00/17] [RFC] static instrumentation

2010-10-22 Thread Lluís
Here's a set of patches with the current state of static instrumentation. Hope that this organization will help understanding the point of it. Patch 9 describes the taken approach for instrumenting during code generation, which is the main point of this. Code can also be reached at: https://

[Qemu-devel] [RFC][PATCH 01/15] virtproxy: base data structures and constants

2010-10-22 Thread Michael Roth
Signed-off-by: Michael Roth --- virtproxy.c | 134 +++ virtproxy.h | 34 +++ 2 files changed, 168 insertions(+), 0 deletions(-) create mode 100644 virtproxy.c create mode 100644 virtproxy.h diff --git a/virtproxy.c b/virtp

[Qemu-devel] [RFC][PATCH 00/15] virtproxy: host/guest communication layer

2010-10-22 Thread Michael Roth
OVERVIEW: Virtproxy proxies and multiplexes socket streams over a data channel between a host and a guest (currently network connections, emulated serial, or virtio-serial channels are supported). This allows for services such as guest data collection agents, host/guest file transfer, and event

[Qemu-devel] [RFC][PATCH 10/15] virtproxy: add handler for control packet

2010-10-22 Thread Michael Roth
Process control packets coming in over the channel. This entails setting up/tearing down connections to local services initiated from the other end of the channel. Signed-off-by: Michael Roth --- virtproxy.c | 154 +++ 1 files changed, 154

[Qemu-devel] [RFC][PATCH 07/15] virtproxy: add vp_new() VPDriver constructor

2010-10-22 Thread Michael Roth
Signed-off-by: Michael Roth --- virtproxy.c | 23 +++ virtproxy.h |3 +++ 2 files changed, 26 insertions(+), 0 deletions(-) diff --git a/virtproxy.c b/virtproxy.c index c9c3022..cc0ac9a 100644 --- a/virtproxy.c +++ b/virtproxy.c @@ -313,3 +313,26 @@ static void vp_chan

[Qemu-devel] [RFC][PATCH 03/15] virtproxy: add debug functions for virtproxy core

2010-10-22 Thread Michael Roth
Signed-off-by: Michael Roth --- virtproxy.c | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/virtproxy.c b/virtproxy.c index f30b859..2f8996c 100644 --- a/virtproxy.c +++ b/virtproxy.c @@ -13,6 +13,23 @@ #include "virtproxy.h" +#define DEBUG_VP + +#i

[Qemu-devel] [RFC][PATCH 11/15] virtproxy: add vp_handle_packet()

2010-10-22 Thread Michael Roth
Signed-off-by: Michael Roth --- virtproxy.c | 23 +++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/virtproxy.c b/virtproxy.c index 4f56aba..5ec4e77 100644 --- a/virtproxy.c +++ b/virtproxy.c @@ -431,6 +431,29 @@ static int vp_handle_data_packet(void *drv,

[Qemu-devel] [RFC][PATCH 06/15] virtproxy: add read handler for communication channel

2010-10-22 Thread Michael Roth
Handle data coming in over the channel as VPPackets: Process control messages and forward data from remote client/server connections to the appropriate server/client FD on our end. Signed-off-by: Michael Roth --- virtproxy.c | 83 +++ 1 f

[Qemu-devel] [RFC][PATCH 08/15] virtproxy: interfaces to set/remove/handle VPOForwards

2010-10-22 Thread Michael Roth
Functions to add listener FDs (oforwards) which set up proxied connections to associated service, and the corresponding handler function to process to new connections to said FDs and initialize new client connections to the associated remote server over the channel Signed-off-by: Michael Roth ---

[Qemu-devel] [RFC][PATCH 09/15] virtproxy: add handler for data packets

2010-10-22 Thread Michael Roth
Process VPPackets coming in from channel and send them to the appropriate server/client connections. Signed-off-by: Michael Roth --- virtproxy.c | 42 ++ 1 files changed, 42 insertions(+), 0 deletions(-) diff --git a/virtproxy.c b/virtproxy.c index 6c36

[Qemu-devel] [RFC][PATCH 02/15] virtproxy: qemu-vp, standalone daemon skeleton

2010-10-22 Thread Michael Roth
Daemon to be run in guest, or on host in standalone mode. (re-)implements some qemu utility functions used by core virtproxy.c code via wrapper functions. For built-in virtproxy code we will define these wrapper functions in terms of qemu's built-in implementations. Main logic will come in a later

[Qemu-devel] [PATCH] Refactor flush of per-CPU virtual TB cache

2010-10-22 Thread Lluís
Signed-off-by: Lluís Vilanova --- exec-all.h |2 ++ exec.c |9 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/exec-all.h b/exec-all.h index 3a53fe6..2ae09c5 100644 --- a/exec-all.h +++ b/exec-all.h @@ -182,6 +182,8 @@ static inline unsigned int tb_phys_hash_f

[Qemu-devel] [PATCH] [arm m68k] Move helpers.h to helper.h

2010-10-22 Thread Lluís
This provides a consistent naming scheme across all targets. Signed-off-by: Lluís Vilanova --- target-arm/helper.c|2 +- target-arm/helper.h| 450 target-arm/helpers.h | 450 tar

[Qemu-devel] [PATCH] Allow generation of helpers with 5 arguments

2010-10-22 Thread Lluís
Signed-off-by: Lluís Vilanova --- def-helper.h | 26 ++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/def-helper.h b/def-helper.h index 8a822c7..7abaf76 100644 --- a/def-helper.h +++ b/def-helper.h @@ -118,6 +118,8 @@ DEF_HELPER_FLAGS_3(name, 0, r

[Qemu-devel] [PATCH] Use '_raw' memory access primitives

2010-10-22 Thread Lluís
Using a pointer on the host should not go through lduw. Signed-off-by: Lluís Vilanova --- linux-user/signal.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-user/signal.c b/linux-user/signal.c index 77683f7..097da9d 100644 --- a/linux-user/signal.c +++ b/linux-

[Qemu-devel] Re: [PATCH 2/2] Replace remaining gcc format attributes by macro GCC_FMT_ATTR (format checking)

2010-10-22 Thread Blue Swirl
Thanks, applied both. On Fri, Oct 22, 2010 at 10:33 AM, Stefan Weil wrote: > Am 13.10.2010 20:54, schrieb Stefan Weil: >> >> Replace the remaining format attribute printf by macro >> GCC_FMT_ATTR which uses gnu_printf (if supported). >> >> v2 >> * Removal of dyngen specific code is now done in a

Re: [Qemu-devel] KVM call minutes for Oct 19

2010-10-22 Thread Chris Wright
* Anthony Liguori (anth...@codemonkey.ws) wrote: > On 10/22/2010 12:29 PM, Chris Wright wrote: > >* Anthony Liguori (anth...@codemonkey.ws) wrote: > >>The first step is just identifying what interfaces we need in a > >>guest agent. So far, I think we can get away with a very small > >>number of in

[Qemu-devel] Chandra invites you to MySpace

2010-10-22 Thread Myspace
Hello, I'm a member of the MySpace community and thought you'd like to join too. Join MySpace and you will

Re: [Qemu-devel] [PATCH 3/3] Add helper functions to enable virtio-9p make use of the threadlets

2010-10-22 Thread Venkateswararao Jujjuri (JV)
On 10/21/2010 5:10 AM, Arun R Bharadwaj wrote: > From: Gautham R Shenoy > > infrastructure for offloading blocking tasks such as making posix calls on > to the helper threads and handle the post_posix_operations() from the > context of the iothread. This frees the vcpu thread to process any other

[Qemu-devel] Re: [PATCH] sparc32: convert debug printf statements to tracepoints

2010-10-22 Thread Blue Swirl
On Fri, Oct 22, 2010 at 3:22 PM, Stefan Hajnoczi wrote: > On Thu, Oct 21, 2010 at 08:13:51PM +, Blue Swirl wrote: >> Replace debug printf statements with tracepoints. >> >> Signed-off-by: Blue Swirl >> --- >> There were problems with tracetool if the tracepoint string contained >> parentheses

Re: [Qemu-devel] KVM call minutes for Oct 19

2010-10-22 Thread Chris Wright
* Anthony Liguori (anth...@codemonkey.ws) wrote: > The first step is just identifying what interfaces we need in a > guest agent. So far, I think we can get away with a very small > number of interfaces (mainly read/write files, execute command). Could you elaborate here? I can't imagine you mea

Re: [Qemu-devel] [PATCH 2/4] Silence compiler warning in json test case

2010-10-22 Thread Luiz Capitulino
On Fri, 22 Oct 2010 19:15:07 +0200 Markus Armbruster wrote: > Luiz Capitulino writes: > > > From: Jan Kiszka > > > > This avoids > > > > error: zero-length gnu_printf format string > > > > Signed-off-by: Jan Kiszka > > Signed-off-by: Luiz Capitulino > > --- > > check-qjson.c |4 +++-

Re: [Qemu-devel] KVM call minutes for Oct 19

2010-10-22 Thread Anthony Liguori
On 10/22/2010 12:29 PM, Chris Wright wrote: * Anthony Liguori (anth...@codemonkey.ws) wrote: The first step is just identifying what interfaces we need in a guest agent. So far, I think we can get away with a very small number of interfaces (mainly read/write files, execute command).

Re: [Qemu-devel] [PATCH 2/4] Silence compiler warning in json test case

2010-10-22 Thread Markus Armbruster
Luiz Capitulino writes: > From: Jan Kiszka > > This avoids > > error: zero-length gnu_printf format string > > Signed-off-by: Jan Kiszka > Signed-off-by: Luiz Capitulino > --- > check-qjson.c |4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > > diff --git a/check-qjson.c b/

Re: Fwd: [Qemu-devel] bdrv_flush for qemu block drivers nbd, rbd and sheepdog

2010-10-22 Thread Sage Weil
On Fri, 22 Oct 2010, Kevin Wolf wrote: > [ Adding qemu-devel to CC again ] > > Am 21.10.2010 20:59, schrieb Sage Weil: > > On Thu, 21 Oct 2010, Christian Brunner wrote: > >> Hi, > >> > >> is there a flush operation in librados? - I guess the only way to > >> handle this, would be waiting until all

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

2010-10-22 Thread Ryan Harper
* Kevin Wolf [2010-10-22 11:12]: > Am 22.10.2010 17:48, schrieb Luiz Capitulino: > > On Thu, 21 Oct 2010 21:55:51 -0500 > > Ryan Harper wrote: > > > >> This patch series decouples the detachment of a block device from the > >> removal > >> of the backing pci-device. Removal of a hotplugged pci

[Qemu-devel] [PATCH] usb-linux: allow multiple devices with matching IDs

2010-10-22 Thread Grazvydas Ignotas
Right now if we pass through multiple USB devices with matching vendor and product IDs, only first one is passed to guest, as the code thinks second device is already attached. The only way to get those devices working is to specify bus.addr which is inconvenient if devices are frequently replugged

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

2010-10-22 Thread Kevin Wolf
Am 22.10.2010 17:48, schrieb Luiz Capitulino: > On Thu, 21 Oct 2010 21:55:51 -0500 > Ryan Harper wrote: > >> This patch series decouples the detachment of a block device from the removal >> of the backing pci-device. Removal of a hotplugged pci device requires the >> guest to respond before qemu

Re: [Qemu-devel] [PATCH 1/2] v2 Add drive_get_by_id

2010-10-22 Thread Luiz Capitulino
On Thu, 21 Oct 2010 21:55:52 -0500 Ryan Harper wrote: > Add a function to find a drive by id string. > > Changes since v1: > -Coding Style fix > > Signed-off-by: Ryan Harper > --- > blockdev.c | 13 + > blockdev.h |1 + > 2 files changed, 14 insertions(+), 0 deletions(-) >

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

2010-10-22 Thread Luiz Capitulino
On Thu, 21 Oct 2010 21:55:51 -0500 Ryan Harper wrote: > This patch series decouples the detachment of a block device from the removal > of the backing pci-device. Removal of a hotplugged pci device requires the > guest to respond before qemu tears down the block device. In some cases, the > gues

Re: [Qemu-devel] [PATCH 2/2] v3 Fix Block Hotplug race with drive_unplug()

2010-10-22 Thread Luiz Capitulino
On Thu, 21 Oct 2010 21:55:53 -0500 Ryan Harper wrote: > Block hot unplug is racy since the guest is required to acknowlege the ACPI > unplug event; this may not happen synchronously with the device removal > command > > This series aims to close a gap where by mgmt applications that assume the

[Qemu-devel] Re: [RFC][PATCH 4/5] trace-event

2010-10-22 Thread Stefan Hajnoczi
On Thu, Oct 21, 2010 at 03:10:18PM +0530, Prerna Saxena wrote: > trace-event : QMP interface to change state of a trace-event. > (Analogous to hmp command : trace-event ) > > Signed-off-by: Prerna Saxena > --- > qmp-commands.hx | 32 > 1 files changed, 32 inser

[Qemu-devel] Re: [PATCH] sparc32: convert debug printf statements to tracepoints

2010-10-22 Thread Stefan Hajnoczi
On Thu, Oct 21, 2010 at 08:13:51PM +, Blue Swirl wrote: > Replace debug printf statements with tracepoints. > > Signed-off-by: Blue Swirl > --- > There were problems with tracetool if the tracepoint string contained > parentheses or brackets, so I removed those. > > hw/cs4231.c| 2

Re: [Qemu-devel] [PATCH v3 0/5] qed: Add QEMU Enhanced Disk format

2010-10-22 Thread Stefan Hajnoczi
Subject line fixed. Stefan

[Qemu-devel] [PATCH v3 3/5] qed: Table, L2 cache, and cluster functions

2010-10-22 Thread Stefan Hajnoczi
This patch adds code to look up data cluster offsets in the image via the L1/L2 tables. The L2 tables are writethrough cached in memory for performance (each read/write requires a lookup so it is essential to cache the tables). With cluster lookup code in place it is possible to implement bdrv_is

[Qemu-devel] [PATCH v3 2/5] qed: Add QEMU Enhanced Disk image format

2010-10-22 Thread Stefan Hajnoczi
This patch introduces the qed on-disk layout and implements image creation. Later patches add read/write and other functionality. Signed-off-by: Stefan Hajnoczi --- Makefile.objs |1 + block/qed.c | 546 + block/qed.h | 148 +

[Qemu-devel] [PATCH v3 4/5] qed: Read/write support

2010-10-22 Thread Stefan Hajnoczi
This patch implements the read/write state machine. Operations are fully asynchronous and multiple operations may be active at any time. Allocating writes lock tables to ensure metadata updates do not interfere with each other. If two allocating writes need to update the same L2 table they will

[Qemu-devel] [PATCH v3 1/5] docs: Add QED image format specification

2010-10-22 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi --- docs/specs/qed_spec.txt | 128 +++ 1 files changed, 128 insertions(+), 0 deletions(-) create mode 100644 docs/specs/qed_spec.txt diff --git a/docs/specs/qed_spec.txt b/docs/specs/qed_spec.txt new file mode 100644 in

[Qemu-devel] [PATCH v3 5/5] qed: Consistency check support

2010-10-22 Thread Stefan Hajnoczi
This patch adds support for the qemu-img check command. It also introduces a dirty bit in the qed header to mark modified images as needing a check. This bit is cleared when the image file is closed cleanly. If an image file is opened and it has the dirty bit set, a consistency check will run an

[Qemu-devel] (no subject)

2010-10-22 Thread Stefan Hajnoczi
QEMU Enhanced Disk format is a disk image format that forgoes features found in qcow2 in favor of better levels of performance and data integrity. Due to its simpler on-disk layout, it is possible to safely perform metadata updates more efficiently. Installations, suspend-to-disk, and other alloc

Re: [Qemu-devel] Re: [PATCH v6 07/12] pcie/hotplug: introduce pushing attention button command

2010-10-22 Thread Anthony Liguori
On 10/22/2010 09:38 AM, Michael S. Tsirkin wrote: On Fri, Oct 22, 2010 at 01:35:47PM +0200, Markus Armbruster wrote: "Michael S. Tsirkin" writes: On Wed, Oct 20, 2010 at 05:18:56PM +0900, Isaku Yamahata wrote: glue pcie_push_attention_button command. Signed-off-by: Isaku Y

Re: [Qemu-devel] Re: [PATCH v6 07/12] pcie/hotplug: introduce pushing attention button command

2010-10-22 Thread Michael S. Tsirkin
On Fri, Oct 22, 2010 at 01:35:47PM +0200, Markus Armbruster wrote: > "Michael S. Tsirkin" writes: > > > On Wed, Oct 20, 2010 at 05:18:56PM +0900, Isaku Yamahata wrote: > >> glue pcie_push_attention_button command. > >> > >> Signed-off-by: Isaku Yamahata > > > > So as a high level command, I thi

Re: [Qemu-devel] bdrv_flush for qemu block drivers nbd, rbd and sheepdog

2010-10-22 Thread Kevin Wolf
Am 22.10.2010 15:45, schrieb Anthony Liguori: >>> On a physical system, if you don't have a battery backed disk and you >>> enable the WC on your disk, then even with cache=writethrough we're unsafe. >>> >> I don't think that's right. O_SYNC should guarantee that the volatile >> disk cache is

[Qemu-devel] [PATCH 4/4] monitor: Ignore "." and ".." when completing file name.

2010-10-22 Thread Luiz Capitulino
From: Kusanagi Kouichi Signed-off-by: Kusanagi Kouichi Signed-off-by: Luiz Capitulino --- monitor.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/monitor.c b/monitor.c index 260cc02..61607c5 100644 --- a/monitor.c +++ b/monitor.c @@ -3976,6 +3976,11 @@ static voi

Re: [Qemu-devel] [PATCH 0/6] First part of autoconfy series: cleanup tests/

2010-10-22 Thread Paolo Bonzini
On 10/22/2010 03:44 PM, Luiz Capitulino wrote: > We could also have check-i386, check-qmp, etc. and check would simply > call all of them. That would be perfect, I think. I mean, if we could stick only to check to do all our unit-testing Well, the current "make test" is more integration test

[Qemu-devel] [PULL 0/4]: Monitor queue

2010-10-22 Thread Luiz Capitulino
Anthony, The following patches have been sent to the list and look good to me. I've also tested them. The changes (since d03703c81a202cea156811e5dbc8e88627c19986) are available in the following repository: git://repo.or.cz/qemu/qmp-unstable.git for-anthony Hidetoshi Seto (1): Trivial

[Qemu-devel] [PATCH 11/11] virtio-blk: Respect werror option for flushes

2010-10-22 Thread Kevin Wolf
The werror option now affects not only write requests, but also flush requests. Previously, it was not possible to stop a VM on a failed flush. Signed-off-by: Kevin Wolf --- hw/virtio-blk.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/hw/virtio-blk.c b/hw/virti

Re: [Qemu-devel] [PATCH 0/3] add usb_detach and usb_attach (v3)

2010-10-22 Thread Luiz Capitulino
On Fri, 22 Oct 2010 08:43:39 -0500 Anthony Liguori wrote: > On 10/22/2010 08:17 AM, Luiz Capitulino wrote: > > You and Gerd asked about the purpose of this command, turns out that it's > > only useful for developing new USB devices for QEMU, so I thought it would > > be better to restrict it, so

  1   2   >