[Qemu-devel] [Bug 670776] Re: testandset

2010-11-03 Thread hotdigi
Build errors on TEGRA2(ubuntu) /tmp/ccqt9Y5t.s: Assembler messages: /tmp/ccqt9Y5t.s:1899: Error: selected processor does not support Thumb mode 'swp r4, r4, [r2]' /tmp/ccqt9Y5t.s:1974: Error: selected processor does not support Thumb mode 'swp r5, r5, [ip]' make[1]: *** [exec.o Error 1 ** Summa

[Qemu-devel] [Bug 670776] [NEW] Build errors on TEGRA2(ubuntu), testandset()

2010-11-03 Thread hotdigi
Public bug reported: Build errors on TEGRA2(ubuntu) /tmp/ccqt9Y5t.s: Assembler messages: /tmp/ccqt9Y5t.s:1899: Error: selected processor does not support Thumb mode 'swp r4, r4, [r2]' /tmp/ccqt9Y5t.s:1974: Error: selected processor does not support Thumb mode 'swp r5, r5, [ip]' make[1]: *** [ex

[Qemu-devel] [Bug 670769] Re: CDROM size not updated when changing image files

2010-11-03 Thread Alex Davis
** Attachment added: "initrd.img" https://bugs.launchpad.net/bugs/670769/+attachment/1722521/+files/initrd.img -- CDROM size not updated when changing image files https://bugs.launchpad.net/bugs/670769 You received this bug notification because you are a member of qemu- devel-ml, which is sub

[Qemu-devel] [Bug 670769] [NEW] CDROM size not updated when changing image files

2010-11-03 Thread Alex Davis
Public bug reported: I'm using qemu 13.0 with a plain Linux kernel using the ata_piix driver as the guest, and an initrd that starts a shell. When changing the image in the monitor and reading from the CDROM in the guest, the size is not updated. I'm using LInux 2.6.32.24 as the host and I've t

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

2010-11-03 Thread Adam Litke
On Wed, 2010-11-03 at 10:28 -0500, Michael Roth wrote: > 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

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

2010-11-03 Thread Adam Litke
On Wed, 2010-11-03 at 10:28 -0500, Michael Roth wrote: > 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 +++

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

2010-11-03 Thread Adam Litke
Be more descriptive here please. On Wed, 2010-11-03 at 10:28 -0500, Michael Roth wrote: > 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 > in

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

2010-11-03 Thread Adam Litke
On Wed, 2010-11-03 at 10:27 -0500, Michael Roth wrote: > +static QemuOptsList vp_socket_opts = { > +.name = "vp_socket_opts", > +.head = QTAILQ_HEAD_INITIALIZER(vp_socket_opts.head), > +.desc = { > +{ > +.name = "path", > +.type = QEMU_OPT_STRING, > +

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

2010-11-03 Thread Adam Litke
On Wed, 2010-11-03 at 10:27 -0500, Michael Roth wrote: > +/* mirror qemu I/O-related code for standalone daemon */ > +typedef struct IOHandlerRecord { > +int fd; > +IOCanReadHandler *fd_read_poll; > +IOHandler *fd_read; > +IOHandler *fd_write; > +int deleted; > +void *opaque

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

2010-11-03 Thread Adam Litke
On Wed, 2010-11-03 at 10:28 -0500, Michael Roth wrote: > 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 |

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

2010-11-03 Thread Adam Litke
Alas, this code exists in several other places too... I guess you can't be responsible for cleaning up all of qemu :) On Wed, 2010-11-03 at 10:27 -0500, Michael Roth wrote: > Signed-off-by: Michael Roth > --- > virtproxy.c | 17 + > 1 files changed, 17 insertions(+), 0 deletion

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

2010-11-03 Thread Adam Litke
You've got a lot of "objects" interacting with one another in virtproxy. I think it would help other reviewers if you could describe the relationships between the entities such as: VPDriver, VPConn, VPChannel, VPIForward, VPOForward, etc. This patch series is really wiring a lot of things together

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

2010-11-03 Thread Adam Litke
You should describe your changes a little bit more on the top here. Looks good otherwise. On Wed, 2010-11-03 at 10:27 -0500, Michael Roth wrote: > Signed-off-by: Michael Roth > --- > virtproxy.c | 44 > 1 files changed, 44 insertions(+), 0 deletions

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

2010-11-03 Thread Adam Litke
Description please. On Wed, 2010-11-03 at 10:28 -0500, Michael Roth wrote: > Signed-off-by: Michael Roth > --- > virtproxy.c | 59 > +++ > virtproxy.h |2 ++ > 2 files changed, 61 insertions(+), 0 deletions(-) > > diff --git a/virtp

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

2010-11-03 Thread Adam Litke
On Wed, 2010-11-03 at 10:28 -0500, Michael Roth wrote: > 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(

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

2010-11-03 Thread Adam Litke
Description please. On Wed, 2010-11-03 at 10:28 -0500, Michael Roth wrote: > 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/vir

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

2010-11-03 Thread Adam Litke
On Wed, 2010-11-03 at 10:28 -0500, Michael Roth wrote: > 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

Re: [Qemu-devel] [PATCH 0/3] v4 Decouple block device removal from device removal

2010-11-03 Thread Michael S. Tsirkin
On Wed, Nov 03, 2010 at 03:59:29PM -0500, Ryan Harper wrote: > * Michael S. Tsirkin [2010-11-03 13:03]: > > On Wed, Nov 03, 2010 at 12:29:10PM -0500, Ryan Harper wrote: > > > * Markus Armbruster [2010-11-03 11:42]: > > > > Ryan Harper writes: > > > > > > > > > * Michael S. Tsirkin [2010-11-03

Re: [Qemu-devel] [PATCH 0/3] v4 Decouple block device removal from device removal

2010-11-03 Thread Ryan Harper
* Michael S. Tsirkin [2010-11-03 13:03]: > On Wed, Nov 03, 2010 at 12:29:10PM -0500, Ryan Harper wrote: > > * Markus Armbruster [2010-11-03 11:42]: > > > Ryan Harper writes: > > > > > > > * Michael S. Tsirkin [2010-11-03 02:22]: > > > >> On Tue, Nov 02, 2010 at 03:23:38PM -0500, Ryan Harper wr

[Qemu-devel] [PATCH v1 3/4] trace-gen: [all] include "trace-helper.h" on all "helper.h" files

2010-11-03 Thread Lluís
Signed-off-by: Lluís Vilanova --- target-alpha/helper.h |2 ++ target-arm/helper.h|2 ++ target-cris/helper.h |2 ++ target-i386/helper.h |2 ++ target-m68k/helper.h |2 ++ target-microblaze/helper.h |2 ++ target-mips/helper.h |2 +

[Qemu-devel] [PATCH v1 2/4] trace-gen: auto-generate TCG helper routines for tracing

2010-11-03 Thread Lluís
Auto-generates file "trace-helper.h" to provide TCG helpers and "trace-helper.c" to proxy these helpers onto trace event routines. Only trace events with the 'gen' property are affected. Signed-off-by: Lluís Vilanova --- .gitignore |2 + Makefile| 15 Makefile.target

[Qemu-devel] [PATCH v1 4/4] trace-gen: auto-generate wrappers to call TCG trace helpers

2010-11-03 Thread Lluís
Auto-generates file "trace-gen.h" with instrumentable wrappers to generate calls to TCG trace helpers. Such wrappers are named 'trace_gen_##name', also reachable as 'trace_gen_##name##_backend' when instrumented. Events with the "gen" property are also able to use TCG types on the trace event dec

[Qemu-devel] [PATCH v1 1/3] trace: rewrite 'tracetool' to facilitate future extensions

2010-11-03 Thread Lluís
Signed-off-by: Lluís Vilanova --- Makefile |4 - tracetool | 315 + 2 files changed, 194 insertions(+), 125 deletions(-) diff --git a/Makefile b/Makefile index 252c817..fec086b 100644 --- a/Makefile +++ b/Makefile @@ -108,12 +108,

[Qemu-devel] [PATCH v1 1/4] trace-gen: gracefully handle TCG types in "trace-events"

2010-11-03 Thread Lluís
Some trace events with the "gen" property will need to use TCG arguments. As such, modify 'tracetool' to gracefully handle these types and let the backend code transliterate these types into their native counterpart. Signed-off-by: Lluís Vilanova --- tracetool | 140 +++

[Qemu-devel] [PATCH v1 2/3] trace-instrument: let the user override events generated by 'tracetool'

2010-11-03 Thread Lluís
Add a new event keyword ("instrument") that lets the user provide her own implementation of tracing events. Still, tracetool's original implementation is accessible through function '_trace_##name' instead of 'trace_##name' (in case the user only wants to wrap around the event). Signed-off-by: Ll

[Qemu-devel] [RFC][PATCH v1 0/4] trace-gen: support for trace points in code-generation routines

2010-11-03 Thread Lluís
Adds a new optional keyword ("gen") to the syntax in "trace-events". When specified, this event property will generate an extra set of functions that provide the ability to inject trace points into TCG-generated code. Note that the regular backend-dependant functions will also be generated. The ex

[Qemu-devel] [PATCH v1 6/6] backdoor: add a simple example

2010-11-03 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 | 13

[Qemu-devel] [RFC][PATCH v1 0/3] trace-instrument: let the user wrap/override code generated from trace-events

2010-11-03 Thread Lluís
Adds a new optional keyword ("instrument") to the syntax in "trace-events". When specified, this event property lets the user provide her own implementation for that tracing event. Still, in case the user only wants to wrap around the tracing event, tracetool's original implementation is accessibl

[Qemu-devel] [PATCH v1 3/3] trace-instrument: handle config-time activation

2010-11-03 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 --- Make

[Qemu-devel] [PATCH v1 4/6] backdoor: declare guest-side interface macros

2010-11-03 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 | 33 + 1 files changed, 33 insertions(+), 0 deletions(-) create mode 100644 ba

[Qemu-devel] [PATCH v1 5/6] backdoor: [i386] provide and implement intruction-based backdoor interface

2010-11-03 Thread Lluís
Take the unused CPUID 0x40001xxx range as the backdoor instruction. Signed-off-by: Lluís Vilanova --- backdoor/guest.h| 21 + target-i386/cpuid.c | 27 +++ target-i386/helper.h|4 target-i386/translate.c |4 4 file

[Qemu-devel] [PATCH v1 3/6] backdoor: declare host-side backdoor helpers

2010-11-03 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 v1 2/6] backdoor: handle config-time activation

2010-11-03 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 v1 1/6] [arm m68k] move helpers.h to helper.h

2010-11-03 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 targe

[Qemu-devel] [RFC][PATCH v1 0/6] backdoor: instruction-based guest-to-QEMU backdoor communication channel

2010-11-03 Thread Lluís
Provides the ability for the guest to communicate with user-provided code inside QEMU itself. This backdoor communication channel is based on using instructions, as opposed to methods based on MMIO/PIO or virtproxy/virtagent. Then, these instructions are redirected to a set of user-provided routi

[Qemu-devel] Re: [PATCH] Delete IOHandlers after potentially running them

2010-11-03 Thread Juan Quintela
Anthony Liguori wrote: > On 11/03/2010 10:12 AM, Juan Quintela wrote: >> Anthony Liguori wrote: >> >>> On 11/03/2010 09:29 AM, Stefan Hajnoczi wrote: >>> Since commit 4bed9837309e58d208183f81d8344996744292cf an .fd_read() handler that deletes its IOHandler is exposed to .fd_wr

Re: [Qemu-devel] [PATCH 1/1] Fold send_all() wrapper unix_write() into one function

2010-11-03 Thread Anthony Liguori
On 11/01/2010 02:02 PM, jes.soren...@redhat.com wrote: From: Jes Sorensen The current send_all() wrapper for POSIX calls does nothing but call unix_write(). Merge them to simplify the code. Signed-off-by: Jes Sorensen Applied. Thanks. Regards, Anthony Liguori --- qemu-char.c |8

[Qemu-devel] Re: [PATCH 1/4] Introduce strtosz() library function to convert a string to a byte count.

2010-11-03 Thread Anthony Liguori
On 10/21/2010 10:15 AM, jes.soren...@redhat.com wrote: From: Jes Sorensen strtosz() returns -1 on error. It now supports human unit formats in eg. 1.0G, with better error handling. The following suffixes are supported: B/b = bytes K/k = KB M/m = MB G/g = GB T/t = TB This patch changes -numa an

Re: [Qemu-devel] site down (qemu.org)

2010-11-03 Thread Anthony Liguori
On 11/03/2010 01:14 PM, Lluís wrote: For a lack (to my knowledge) for a better place, just say that I cannot resolve qemu.org. This affects both the webpage and the git repository. I'm using "git://git.qemu.org/qemu.git", which I thought is the main one. The site is actually up but the DNS

Re: [Qemu-devel] Re: [PATCH] Implement a virtio GPU transport

2010-11-03 Thread Anthony Liguori
On 11/03/2010 01:03 PM, Ian Molton wrote: The virtio driver enfoces the PID field and understands the packet format used. Its better than using serial. Its also just one driver - which doesnt have any special interdependencies and can be extended or got rid of in future if and when better thi

[Qemu-devel] site down (qemu.org)

2010-11-03 Thread Lluís
For a lack (to my knowledge) for a better place, just say that I cannot resolve qemu.org. This affects both the webpage and the git repository. I'm using "git://git.qemu.org/qemu.git", which I thought is the main one. Thanks, Lluis -- "And it's much the same thing with knowledge, for w

Re: [Qemu-devel] Re: [PATCH] Implement a virtio GPU transport

2010-11-03 Thread Ian Molton
On 01/11/10 13:28, Anthony Liguori wrote: On 11/01/2010 06:53 AM, Alon Levy wrote: While we (speaking as part of the SPICE developers) want to have the same support in our virtual GPU for 3d as we have for 2d, we just don't at this point of time. Would it be helpful to you to have /something

Re: [Qemu-devel] [PATCH 0/3] v4 Decouple block device removal from device removal

2010-11-03 Thread Michael S. Tsirkin
On Wed, Nov 03, 2010 at 12:29:10PM -0500, Ryan Harper wrote: > * Markus Armbruster [2010-11-03 11:42]: > > Ryan Harper writes: > > > > > * Michael S. Tsirkin [2010-11-03 02:22]: > > >> On Tue, Nov 02, 2010 at 03:23:38PM -0500, Ryan Harper wrote: > > >> > * Michael S. Tsirkin [2010-11-02 14:18]

[Qemu-devel] Re: [RFC][PATCH 1/3] Linux/Guest unmapped page cache control

2010-11-03 Thread Christoph Lameter
On Wed, 3 Nov 2010, Balbir Singh wrote: > > > +#define UNMAPPED_PAGE_RATIO 16 > > > > Maybe come up with a scheme that allows better configuration of the > > mininum? I think in some setting we may want an absolute limit and in > > other a fraction of something (total zone size or working set?) >

Re: [Qemu-devel] Re: [PATCH] Implement a virtio GPU transport

2010-11-03 Thread Ian Molton
On 29/10/10 12:18, Rusty Russell wrote: On Wed, 27 Oct 2010 11:30:31 pm Ian Molton wrote: On 19/10/10 11:39, Avi Kivity wrote: On 10/19/2010 12:31 PM, Ian Molton wrote: 2. should start with a patch to the virtio-pci spec to document what you're doing Where can I find that spec? http://oz

Re: [Qemu-devel] Re: [PATCH] Implement a virtio GPU transport

2010-11-03 Thread Ian Molton
On 01/11/10 15:57, Anthony Liguori wrote: It very much is. It supports fully visually integrated rendering (no overlay windows) and even compositing GL window managers work fine, even if running 3D apps under them. Does the kernel track userspace pid and pass that information to qemu? Yes. A

[Qemu-devel] Re: [PATCH] Delete IOHandlers after potentially running them

2010-11-03 Thread Anthony Liguori
On 11/03/2010 10:12 AM, Juan Quintela wrote: Anthony Liguori wrote: On 11/03/2010 09:29 AM, Stefan Hajnoczi wrote: Since commit 4bed9837309e58d208183f81d8344996744292cf an .fd_read() handler that deletes its IOHandler is exposed to .fd_write() being called on the deleted IOHandler.

Re: [Qemu-devel] [PATCH 0/3] v4 Decouple block device removal from device removal

2010-11-03 Thread Ryan Harper
* Markus Armbruster [2010-11-03 11:42]: > Ryan Harper writes: > > > * Michael S. Tsirkin [2010-11-03 02:22]: > >> On Tue, Nov 02, 2010 at 03:23:38PM -0500, Ryan Harper wrote: > >> > * Michael S. Tsirkin [2010-11-02 14:18]: > >> > > On Tue, Nov 02, 2010 at 02:01:08PM -0500, Ryan Harper wrote: >

Re: [Qemu-devel] [PATCHv2 4/8] Store IDE bus id in IDEBus structure for easy access.

2010-11-03 Thread Markus Armbruster
Gleb Natapov writes: > On Wed, Nov 03, 2010 at 04:18:18PM +0100, Markus Armbruster wrote: >> Gleb Natapov writes: >> >> > On Wed, Nov 03, 2010 at 02:39:52PM +0100, Markus Armbruster wrote: >> >> Here's a generic answer to the question "which of the device's buses is >> >> this?" >> >> >> >> in

[Qemu-devel] Re: [RFC][PATCH 1/3] Linux/Guest unmapped page cache control

2010-11-03 Thread Balbir Singh
* Christoph Lameter [2010-11-03 09:35:33]: > On Fri, 29 Oct 2010, Balbir Singh wrote: > > > A lot of the code is borrowed from zone_reclaim_mode logic for > > __zone_reclaim(). One might argue that the with ballooning and > > KSM this feature is not very useful, but even with ballooning, > > In

Re: [Qemu-devel] [PATCHv2 4/8] Store IDE bus id in IDEBus structure for easy access.

2010-11-03 Thread Gleb Natapov
On Wed, Nov 03, 2010 at 04:18:18PM +0100, Markus Armbruster wrote: > Gleb Natapov writes: > > > On Wed, Nov 03, 2010 at 02:39:52PM +0100, Markus Armbruster wrote: > >> Here's a generic answer to the question "which of the device's buses is > >> this?" > >> > >> int qbus_index(BusState *bus) > >>

Re: [Qemu-devel] [PATCH 0/3] v4 Decouple block device removal from device removal

2010-11-03 Thread Markus Armbruster
Ryan Harper writes: > * Michael S. Tsirkin [2010-11-03 02:22]: >> On Tue, Nov 02, 2010 at 03:23:38PM -0500, Ryan Harper wrote: >> > * Michael S. Tsirkin [2010-11-02 14:18]: >> > > On Tue, Nov 02, 2010 at 02:01:08PM -0500, Ryan Harper wrote: >> > > > > > > > I like the idea of disconnect; if par

[Qemu-devel] [Bug 611142] Re: seabios should have native scsi support

2010-11-03 Thread Scott Moser
Just a comment, the commands in the summary will boot the first time, but a reboot will (possibly) fail. bug 615529 has more info on that. -- seabios should have native scsi support https://bugs.launchpad.net/bugs/611142 You received this bug notification because you are a member of qemu- devel-

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

2010-11-03 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][RESEND][PATCH v1 10/15] virtproxy: add handler for control packet

2010-11-03 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][RESEND][PATCH v1 12/15] virtproxy: interfaces to set/remove VPIForwards

2010-11-03 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] [RFC][RESEND][PATCH v1 15/15] virtproxy: qemu-vp, main logic

2010-11-03 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][RESEND][PATCH v1 13/15] virtproxy: add read handler for proxied connections

2010-11-03 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

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

2010-11-03 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][RESEND][PATCH v1 11/15] virtproxy: add vp_handle_packet()

2010-11-03 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][RESEND][PATCH v1 14/15] virtproxy: Makefile/configure changes to build qemu-vp

2010-11-03 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][RESEND][PATCH v1 06/15] virtproxy: add read handler for communication channel

2010-11-03 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][RESEND][PATCH v1 05/15] virtproxy: add accept handler for communication channel

2010-11-03 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][RESEND][PATCH v1 04/15] virtproxy: list look-up functions conns/oforwards/iforwards

2010-11-03 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] [RFC][RESEND][PATCH v1 03/15] virtproxy: add debug functions for virtproxy core

2010-11-03 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][RESEND][PATCH v1 02/15] virtproxy: qemu-vp, standalone daemon skeleton

2010-11-03 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] [RFC][RESEND][PATCH v1 08/15] virtproxy: interfaces to set/remove/handle VPOForwards

2010-11-03 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][RESEND][PATCH v1 01/15] virtproxy: base data structures and constants

2010-11-03 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][RESEND][PATCH v1 00/15] virtproxy: host/guest communication layer

2010-11-03 Thread Michael Roth
This set of patches is a prereq for the proposed guest agent (virtagent), so resending these to accompany this morning's virtagent v2 submission. OVERVIEW: Virtproxy proxies and multiplexes socket streams over a data channel between a host and a guest (currently network connections, emulated se

Re: [Qemu-devel] [PATCHv2 4/8] Store IDE bus id in IDEBus structure for easy access.

2010-11-03 Thread Markus Armbruster
Gleb Natapov writes: > On Wed, Nov 03, 2010 at 02:39:52PM +0100, Markus Armbruster wrote: >> Here's a generic answer to the question "which of the device's buses is >> this?" >> >> int qbus_index(BusState *bus) >> { >> BusState *b; >> int i, index; >> >> index = -1; >> i = 0; >>

Re: [Qemu-devel] MSI broken?

2010-11-03 Thread Gerd Hoffmann
Hi, Let's track it down futher. Were acpi_mem_writel() and apic_send_msi() in hw/apic.c called or not? No such function in my tree (savannah/master). Looks like some bits needed for msi are not merged yet? Sorry typo. s/acpi/apic/. The attached patch gives me: msi_notify:243 intel-hda:

[Qemu-devel] Re: [PATCH] Delete IOHandlers after potentially running them

2010-11-03 Thread Juan Quintela
Anthony Liguori wrote: > On 11/03/2010 09:29 AM, Stefan Hajnoczi wrote: >> Since commit 4bed9837309e58d208183f81d8344996744292cf an .fd_read() >> handler that deletes its IOHandler is exposed to .fd_write() being >> called on the deleted IOHandler. >> >> This patch fixes deletion so that .fd_read(

Re: [Qemu-devel] [PATCH] Delete IOHandlers after potentially running them

2010-11-03 Thread Anthony Liguori
On 11/03/2010 09:29 AM, Stefan Hajnoczi wrote: Since commit 4bed9837309e58d208183f81d8344996744292cf an .fd_read() handler that deletes its IOHandler is exposed to .fd_write() being called on the deleted IOHandler. This patch fixes deletion so that .fd_read() and .fd_write() are never called on

Re: [Qemu-devel] [PATCH] Delete IOHandlers after potentially running them

2010-11-03 Thread Anthony Liguori
On 11/03/2010 09:29 AM, Stefan Hajnoczi wrote: Since commit 4bed9837309e58d208183f81d8344996744292cf an .fd_read() handler that deletes its IOHandler is exposed to .fd_write() being called on the deleted IOHandler. This patch fixes deletion so that .fd_read() and .fd_write() are never called on

Re: [Qemu-devel] Re: [PATCH] Delete IOHandlers after potentially running them

2010-11-03 Thread Stefan Hajnoczi
On Wed, Nov 3, 2010 at 2:39 PM, Juan Quintela wrote: > Stefan Hajnoczi wrote: >> Since commit 4bed9837309e58d208183f81d8344996744292cf an .fd_read() >> handler that deletes its IOHandler is exposed to .fd_write() being >> called on the deleted IOHandler. >> >> This patch fixes deletion so that .f

[Qemu-devel] Re: [PATCH] Delete IOHandlers after potentially running them

2010-11-03 Thread Juan Quintela
Stefan Hajnoczi wrote: > Since commit 4bed9837309e58d208183f81d8344996744292cf an .fd_read() > handler that deletes its IOHandler is exposed to .fd_write() being > called on the deleted IOHandler. > > This patch fixes deletion so that .fd_read() and .fd_write() are never > called on an IOHandler t

[Qemu-devel] Re: [RFC][PATCH 1/3] Linux/Guest unmapped page cache control

2010-11-03 Thread Christoph Lameter
On Fri, 29 Oct 2010, Balbir Singh wrote: > A lot of the code is borrowed from zone_reclaim_mode logic for > __zone_reclaim(). One might argue that the with ballooning and > KSM this feature is not very useful, but even with ballooning, Interesting use of zone reclaim. I am having a difficult time

[Qemu-devel] [PATCH] Delete IOHandlers after potentially running them

2010-11-03 Thread Stefan Hajnoczi
Since commit 4bed9837309e58d208183f81d8344996744292cf an .fd_read() handler that deletes its IOHandler is exposed to .fd_write() being called on the deleted IOHandler. This patch fixes deletion so that .fd_read() and .fd_write() are never called on an IOHandler that is marked for deletion. Signed

Re: [Qemu-devel] [PATCHv2 4/8] Store IDE bus id in IDEBus structure for easy access.

2010-11-03 Thread Gleb Natapov
On Wed, Nov 03, 2010 at 02:39:52PM +0100, Markus Armbruster wrote: > Here's a generic answer to the question "which of the device's buses is > this?" > > int qbus_index(BusState *bus) > { > BusState *b; > int i, index; > > index = -1; > i = 0; > QLIST_FOREACH(b, &bus->parent->

Re: [Qemu-devel] [PATCHv2 4/8] Store IDE bus id in IDEBus structure for easy access.

2010-11-03 Thread Markus Armbruster
Here's a generic answer to the question "which of the device's buses is this?" int qbus_index(BusState *bus) { BusState *b; int i, index; index = -1; i = 0; QLIST_FOREACH(b, &bus->parent->child_bus, sibling) { if (b == bus) { index = i; } i+

Re: [Qemu-devel] MSI broken?

2010-11-03 Thread Isaku Yamahata
On Wed, Nov 03, 2010 at 01:40:59PM +0100, Gerd Hoffmann wrote: > On 11/03/10 13:34, Isaku Yamahata wrote: >> On Wed, Nov 03, 2010 at 12:03:15PM +0100, Gerd Hoffmann wrote: >>> Hi, >>> >>> What is the status if the recently merged MSI support? >>> >>> I'm trying to use it to add msi support to the

Re: [Qemu-devel] MSI broken?

2010-11-03 Thread Gerd Hoffmann
On 11/03/10 13:34, Isaku Yamahata wrote: On Wed, Nov 03, 2010 at 12:03:15PM +0100, Gerd Hoffmann wrote: Hi, What is the status if the recently merged MSI support? I'm trying to use it to add msi support to the intel-hda driver (current wip patch attached). Everything works fine up to the po

Re: [Qemu-devel] MSI broken?

2010-11-03 Thread Isaku Yamahata
On Wed, Nov 03, 2010 at 12:03:15PM +0100, Gerd Hoffmann wrote: > Hi, > > What is the status if the recently merged MSI support? > > I'm trying to use it to add msi support to the intel-hda driver (current > wip patch attached). Everything works fine up to the point where it > comes to deliver

[Qemu-devel] [Bug 626781] Re: Live migration: bandwitdth calculation and rate limiting not working

2010-11-03 Thread eslay
Hi, I issued a bug report (626781) months ago. Any news on it? By the way, I think it is really a bug other than a question. Regards, eslay ** Changed in: qemu Status: New => Invalid ** Converted to question: https://answers.launchpad.net/qemu/+question/132364 -- Live migration: ban

Re: [Qemu-devel] [PATCH 0/3] v4 Decouple block device removal from device removal

2010-11-03 Thread Ryan Harper
* Michael S. Tsirkin [2010-11-03 02:22]: > On Tue, Nov 02, 2010 at 03:23:38PM -0500, Ryan Harper wrote: > > * Michael S. Tsirkin [2010-11-02 14:18]: > > > On Tue, Nov 02, 2010 at 02:01:08PM -0500, Ryan Harper wrote: > > > > > > > > I like the idea of disconnect; if part of the device_del method

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

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

[Qemu-devel] [vgabios patch v2 08/11] Add qemu stdvga pci bios

2010-11-03 Thread Gerd Hoffmann
Add PCI vgabios for the qemu standard vga (1234:). Name it vgabios-stdvga.bin. Signed-off-by: Gerd Hoffmann --- Makefile | 10 +- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index d440b93..58f064e 100644 --- a/Makefile +++ b/Makefile @@ -14,12

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

2010-11-03 Thread Gerd Hoffmann
Hi, This patch series will put the new vgabios into use for stdvga and vmware_vga. The vgabios patches this patch series depends on have just been posted to the list. For obvious reasons it depends on the new vgabios binaries being present, i.e. vgabios patches being committed to vgabios.git,

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

2010-11-03 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/vmware_vga.c |7 +-- 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/hw/vmware_vga.c b/hw/vmware_vga.c index 3d25c14..9337fdb 100644 --- a/hw/vmware_vga.c +++ b/hw/vmware_vga.c @@ -114,14 +114,12 @@ struct pci_vmsvga_state_s { # define S

[Qemu-devel] [vgabios patch v2 00/11] vgabios update

2010-11-03 Thread Gerd Hoffmann
Hi, This patch series updates the vgabios, the patches are intended for the vgabios.git tree @ git.qemu.org The first five patches are taken from the vgabios cvs and update the vgabios.git tree @ qemu.org to vgabios release 0.6c. As this update depends on a newer bochs API it fully works on qe

[Qemu-devel] [PATCH v3 4/4] more stdvga cleanups.

2010-11-03 Thread Gerd Hoffmann
video.x is gone now. It was the only user of the vga bios_offset + bios_size logic. Zap it. Signed-off-by: Gerd Hoffmann --- hw/mips_malta.c |2 +- hw/pc.c |2 +- hw/pc.h |3 +-- hw/ppc_newworld.c |2 +- hw/ppc_oldworld.c |2 +- hw/ppc_prep.c |

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

2010-11-03 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- Makefile |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 02698e9..663d1a1 100644 --- a/Makefile +++ b/Makefile @@ -178,8 +178,9 @@ ar de en-us fi fr-be hr it lv nl pl ru th \ c

[Qemu-devel] [vgabios patch v2 06/11] Makefile cleanup

2010-11-03 Thread Gerd Hoffmann
Use a single rule for building bios binaries. Use target specific variables to set compile flags. This makes it more obvious what the differences between the versions are. It also makes it easier to add new bios binaries with slightly different settings. Signed-off-by: Gerd Hoffmann --- Makefi

[Qemu-devel] [vgabios patch v2 05/11] - updates for release 0.6c

2010-11-03 Thread Gerd Hoffmann
From: Volker Ruppert --- ChangeLog | 12 README|3 ++- 2 files changed, 14 insertions(+), 1 deletions(-) diff --git a/ChangeLog b/ChangeLog index 35bf00a..dbaed5d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2009-04-07 20:18 vruppert + + * vgabios.c (1.

[Qemu-devel] [vgabios patch v2 11/11] Add qemu qxl vga pci bios

2010-11-03 Thread Gerd Hoffmann
Add PCI vgabios for the qemu qxl vga (1b36:0100). Name it vgabios-qxl.bin. Signed-off-by: Gerd Hoffmann --- Makefile | 10 +- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index 2a093e8..578721a 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@

[Qemu-devel] [vgabios patch v2 07/11] Add defines for PCI IDs.

2010-11-03 Thread Gerd Hoffmann
This patch allows to set PCI vendor and device IDs using defines (PCI_VID and PCI_DID). Use it for vgabios.bin. Signed-off-by: Gerd Hoffmann --- Makefile |4 ++-- vbe.c |6 +- vgabios.c |5 + 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Makefile b/Mak

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

2010-11-03 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 --- qemu-vp.c | 115 - 1 files changed, 106 insertions(+), 9 deletions(-) diff --git a/qemu-vp.c b/qemu-vp.c index 0cc0e

[Qemu-devel] [vgabios patch v2 04/11] - biosfn_write_teletype: fixed attribute when scrolling in text mode

2010-11-03 Thread Gerd Hoffmann
From: Volker Ruppert --- vgabios.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/vgabios.c b/vgabios.c index fbc3588..ea3aae8 100644 --- a/vgabios.c +++ b/vgabios.c @@ -2039,7 +2039,9 @@ Bit8u car;Bit8u page;Bit8u attr;Bit8u flag; { if(vga_modes[line].class

[Qemu-devel] [vgabios patch v2 01/11] - use VBE LFB address from PCI base address if present (rewrite of the cirrus specific function in main vgabios code) - removed unnecessary spaces

2010-11-03 Thread Gerd Hoffmann
From: Volker Ruppert --- clext.c | 51 ++- vbe.c | 59 --- vgabios.c | 58 ++ 3 files changed, 92 insertions(+), 76 deletion

[Qemu-devel] [RFC][PATCH v2 08/10] virtagent: add agent_viewdmesg command

2010-11-03 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 | 99 +++ virtagent.h |3 ++ 4 files

  1   2   >