[Qemu-devel] Re: [PATCH v2 0/11]

2009-12-02 Thread Gleb Natapov
On Wed, Dec 02, 2009 at 01:04:16PM +0100, Jan Kiszka wrote: > Gleb Natapov wrote: > > On Tue, Dec 01, 2009 at 10:51:26AM -0200, Glauber Costa wrote: > >> This is a repost of the -smp series. Note that it depends on > >> irqchip-in-kernel, > >> that is already in staging. Also, you'll have to enabl

[Qemu-devel] qustion about x86 sse insn "lddqu"

2009-12-02 Thread Hui Zhu
Hi, In qemu 0.11.0, it handle lddqu as: case 0x3f0: /* lddqu */ if (mod == 3) goto illegal_op; gen_lea_modrm(s, modrm, ®_addr, &offset_addr); gen_sto_env_A0(s->mem_index, offsetof(CPUX86State,xmm_regs[reg])); break; It st the

[Qemu-devel] [PATCH] debugcon: support for debugging consoles (e.g. Bochs port 0xe9)

2009-12-02 Thread H. Peter Anvin
Add generic support for debugging consoles (simple I/O ports which when written to cause debugging output to be written to a target.) The current implementation matches Bochs' port 0xe9, allowing the same debugging code to be used for both Bochs and Qemu. There is no vm state associated with the d

Re: [Qemu-devel] [PATCH] debugcon: support for debugging consoles (e.g. Bochs port 0xe9)

2009-12-02 Thread malc
On Wed, 2 Dec 2009, H. Peter Anvin wrote: > Add generic support for debugging consoles (simple I/O ports which > when written to cause debugging output to be written to a target.) > The current implementation matches Bochs' port 0xe9, allowing the same > debugging code to be used for both Bochs an

[Qemu-devel] [PATCH] debugcon: support for debugging consoles (e.g. Bochs port 0xe9)

2009-12-02 Thread H. Peter Anvin
Add generic support for debugging consoles (simple I/O ports which when written to cause debugging output to be written to a target.) The current implementation matches Bochs' port 0xe9, allowing the same debugging code to be used for both Bochs and Qemu. There is no vm state associated with the d

RE: [Qemu-devel] Socket reconnection.

2009-12-02 Thread Krumme, Chris
Hello Ian, Pasting chunks, then commenting: +static int qemu_chr_sched_reconnect(TCPCharDriver *s) +{ +struct reconnect_list *new = qemu_malloc(sizeof(*new)); +struct timeval tv; + +if(!new) +return 1; Qemu_malloc will never return 0, so sched function can return void. +

[Qemu-devel] [PATCH] PPC: Sync CPU state for KVM

2009-12-02 Thread Alexander Graf
Some recent change made PPC guests always start at address 0x0 because env isn't synced to kvm_state on first bootup. I'm not sure if this is the correct bugfix, but at least it makes PPC boot again with KVM enabled. Signed-off-by: Alexander Graf --- hw/ppc_newworld.c |4 hw/ppc_oldwor

[Qemu-devel] [PATCH] PPC: Get MMU state on register sync

2009-12-02 Thread Alexander Graf
While x86 only needs to sync cr0-4 to know all about its MMU state and enable qemu to resolve virtual to physical addresses, we need to sync all of the segment registers on PPC to know which mapping we're in. So let's grab the segment register contents to be able to use the "x" monitor command and

Re: [Qemu-devel] Re: Unclear committer situation

2009-12-02 Thread Anthony Liguori
Jan Kiszka wrote: Artyom Tarasenko wrote: 2009/12/1 Alexander Graf : Hi, Could someone with commit rights please stand up to feel responsible for PPC? Usually, when I send a patch to qemu-devel, I know who to address to increase chances of it getting committed. For kvm/vnc/block I jus

Re: [Qemu-devel] Unclear committer situation

2009-12-02 Thread Jan-Simon Möller
Am Mittwoch 02 Dezember 2009 09:54:04 schrieb Alexander Graf: > > > > Experience has shown that it doesn't work like that. It happens the > > person writing the patches never provides a fix, and the committer > > receives the complains, and in fine fixes the commit. > > Then revert the patch. I a

[Qemu-devel] [PATCH] Socket reconnection take 2.

2009-12-02 Thread Ian Molton
Reposting as requested. hopefully t-brid doesnt whitespace-mangle it. Anthony Liguori wrote: > > sleep() in qemu is very, very wrong. It will pause the guest's > > execution and all sorts of badness can ensue. Quite... > > The right thing to do is set a timer and not generate data while > > di

Re: [Qemu-devel] Staging update (0.12 pending freeze)

2009-12-02 Thread Luiz Capitulino
On Wed, 02 Dec 2009 13:54:20 -0600 Anthony Liguori wrote: > Luiz Capitulino wrote: > > On Wed, 02 Dec 2009 10:46:11 -0600 > > Anthony Liguori wrote: > > > > > >> I've got all of the patches I'm considering for 0.12 currently in > >> staging. I'm going to work through and test/commit these i

Re: [Qemu-devel] Socket reconnection.

2009-12-02 Thread Anthony Liguori
Ian Molton wrote: Anthony Liguori wrote: sleep() in qemu is very, very wrong. It will pause the guest's execution and all sorts of badness can ensue. Quite... The right thing to do is set a timer and not generate data while disconnected. New patch attached, now with less

Re: [Qemu-devel] Staging update (0.12 pending freeze)

2009-12-02 Thread Anthony Liguori
Ian Molton wrote: Anthony Liguori wrote: Ian Molton wrote: Actually, that patch would break a production environment. You cannot sleep in qemu. It will severely impact the guest. I refer to the version posted today, which doesnt sleep, but uses a timer instead. (or did I m

Re: [Qemu-devel] Staging update (0.12 pending freeze)

2009-12-02 Thread Anthony Liguori
Luiz Capitulino wrote: On Wed, 02 Dec 2009 10:46:11 -0600 Anthony Liguori wrote: I've got all of the patches I'm considering for 0.12 currently in staging. I'm going to work through and test/commit these in a few chunks over the next few days before freezing the tree. If you have a pend

Re: [Qemu-devel] Staging update (0.12 pending freeze)

2009-12-02 Thread Ian Molton
Anthony Liguori wrote: > Ian Molton wrote: > Actually, that patch would break a production environment. You cannot > sleep in qemu. It will severely impact the guest. I refer to the version posted today, which doesnt sleep, but uses a timer instead. (or did I miss something and a callled functi

Re: [Qemu-devel] Staging update (0.12 pending freeze)

2009-12-02 Thread Anthony Liguori
Ian Molton wrote: Anthony Liguori wrote: I've got all of the patches I'm considering for 0.12 currently in staging. http://repo.or.cz/w/qemu/aliguori-queue.git I see you have my rng and size patches in there, thanks for the quick review! Is it too late to get the timer base

Re: [Qemu-devel] Staging update (0.12 pending freeze)

2009-12-02 Thread Ian Molton
Anthony Liguori wrote: > I've got all of the patches I'm considering for 0.12 currently in > staging. > http://repo.or.cz/w/qemu/aliguori-queue.git I see you have my rng and size patches in there, thanks for the quick review! Is it too late to get the timer based socket reconnect patch in and th

Re: [Qemu-devel] Staging update (0.12 pending freeze)

2009-12-02 Thread Luiz Capitulino
On Wed, 02 Dec 2009 10:46:11 -0600 Anthony Liguori wrote: > I've got all of the patches I'm considering for 0.12 currently in > staging. I'm going to work through and test/commit these in a few > chunks over the next few days before freezing the tree. > > If you have a pending patch that you

[Qemu-devel] Re: [PATCH 33/41] virtio-net: port to vmstate

2009-12-02 Thread Juan Quintela
"Michael S. Tsirkin" wrote: > On Wed, Dec 02, 2009 at 07:38:03PM +0100, Juan Quintela wrote: >> "Michael S. Tsirkin" wrote: > I expect it fits in practice. > But you should range check the value and fail migration on error. > >> That is only >> needed for old versions that we are reading (get_*

[Qemu-devel] Re: Staging update (0.12 pending freeze)

2009-12-02 Thread Anthony Liguori
Jan Kiszka wrote: Anthony Liguori wrote: I've got all of the patches I'm considering for 0.12 currently in staging. I'm going to work through and test/commit these in a few chunks over the next few days before freezing the tree. If you have a pending patch that you think should be in 0.12,

[Qemu-devel] Re: Live migration of x86-64 kvm guests broken?

2009-12-02 Thread Jan Kiszka
Ryan Harper wrote: > * Ryan Harper [2009-12-02 13:11]: >> * Jan Kiszka [2009-12-02 12:45]: > So far, so consistent. Could you try kvm-kmod-2.6.32-rc7 on top of that? > Sure, can you remind me of the kvm-kmod build magic for building that branch? >>> If you want to build fro

[Qemu-devel] Re: Live migration of x86-64 kvm guests broken?

2009-12-02 Thread Ryan Harper
* Ryan Harper [2009-12-02 13:11]: > * Jan Kiszka [2009-12-02 12:45]: > > >>> > > >> So far, so consistent. Could you try kvm-kmod-2.6.32-rc7 on top of that? > > >> > > > > > > Sure, can you remind me of the kvm-kmod build magic for building that > > > branch? > > > > > > > If you want to build

[Qemu-devel] Re: Staging update (0.12 pending freeze)

2009-12-02 Thread Jan Kiszka
Anthony Liguori wrote: > I've got all of the patches I'm considering for 0.12 currently in > staging. I'm going to work through and test/commit these in a few > chunks over the next few days before freezing the tree. > > If you have a pending patch that you think should be in 0.12, please > check

[Qemu-devel] Re: [PATCH 33/41] virtio-net: port to vmstate

2009-12-02 Thread Juan Quintela
"Michael S. Tsirkin" wrote: > On Wed, Dec 02, 2009 at 01:04:31PM +0100, Juan Quintela wrote: >> >> Signed-off-by: Juan Quintela >> --- >> hw/virtio-net.c | 148 >> --- >> 1 files changed, 64 insertions(+), 84 deletions(-) >> >> diff --git a

Re: [Qemu-devel] Unclear committer situation

2009-12-02 Thread Anthony Liguori
Artyom Tarasenko wrote: I thought attaching a second copy were the way to send the patch properly. Attaching as an application/octet-stream is not terribly helpful. It basically means you've attached a binary blob. Is the proper way described somewhere? The proper way is to use a m

[Qemu-devel] Re: Live migration of x86-64 kvm guests broken?

2009-12-02 Thread Ryan Harper
* Jan Kiszka [2009-12-02 12:45]: > >>> > >> So far, so consistent. Could you try kvm-kmod-2.6.32-rc7 on top of that? > >> > > > > Sure, can you remind me of the kvm-kmod build magic for building that > > branch? > > > > If you want to build from git, check Wolfgang's nice README. But it > might

[Qemu-devel] Re: [PATCH 06/41] virtio: Use DO_UPCAST instead of a cast

2009-12-02 Thread Juan Quintela
"Michael S. Tsirkin" wrote: > I don't understand. > container_of is just more generic than DO_UPCAST. > So why *ever* use DO_UPCAST? Let's get rid of it. functions that use a PCIDevice and you pass FooState "require" that PCIDevice to be the 1st element in the struct. Notice that it is "require

[Qemu-devel] Re: [PATCH 15/41] virtio: remove save/load_queue for virtio

2009-12-02 Thread Juan Quintela
"Michael S. Tsirkin" wrote: > On Wed, Dec 02, 2009 at 07:22:11PM +0100, Juan Quintela wrote: >> "Michael S. Tsirkin" wrote: >> > On Wed, Dec 02, 2009 at 01:04:13PM +0100, Juan Quintela wrote: >> >> diff --git a/hw/virtio.c b/hw/virtio.c >> >> index c136005..b565bf9 100644 >> >> --- a/hw/virtio.c

[Qemu-devel] Re: [PATCH 38/41] virtio-blk: use QLIST for the list of requests

2009-12-02 Thread Michael S. Tsirkin
On Wed, Dec 02, 2009 at 07:56:58PM +0100, Juan Quintela wrote: > "Michael S. Tsirkin" wrote: > > On Wed, Dec 02, 2009 at 01:04:36PM +0100, Juan Quintela wrote: > >> viltio_blak_dma_restart_bh() was unsafe, it used req->next after having > >> (possible) put req in another list > >> > >> Signed-off

[Qemu-devel] Re: [PATCH 29/41] virtio-net: in_use and first_multi only handle unsigned values

2009-12-02 Thread Michael S. Tsirkin
On Wed, Dec 02, 2009 at 07:55:51PM +0100, Juan Quintela wrote: > "Michael S. Tsirkin" wrote: > > On Wed, Dec 02, 2009 at 07:30:18PM +0100, Juan Quintela wrote: > > >> We can change things to be int32_t if that makes more sense (they were sent > >> as uint32). > >> > >> vmstate checks that the ty

[Qemu-devel] Re: [PATCH 15/41] virtio: remove save/load_queue for virtio

2009-12-02 Thread Michael S. Tsirkin
On Wed, Dec 02, 2009 at 07:50:33PM +0100, Juan Quintela wrote: > "Michael S. Tsirkin" wrote: > > On Wed, Dec 02, 2009 at 07:22:11PM +0100, Juan Quintela wrote: > >> "Michael S. Tsirkin" wrote: > >> > On Wed, Dec 02, 2009 at 01:04:13PM +0100, Juan Quintela wrote: > >> >> diff --git a/hw/virtio.c b

[Qemu-devel] Re: [PATCH 41/41] virtio: virtio_save/load are not used anymore

2009-12-02 Thread Juan Quintela
"Michael S. Tsirkin" wrote: > You probably can just roll "not used anymore" > lines in the parent patch. It does not help > splitting this part out IMO. I reordered the other patches several times. Later, Juan.

[Qemu-devel] Re: [PATCH 38/41] virtio-blk: use QLIST for the list of requests

2009-12-02 Thread Juan Quintela
"Michael S. Tsirkin" wrote: > On Wed, Dec 02, 2009 at 01:04:36PM +0100, Juan Quintela wrote: >> viltio_blak_dma_restart_bh() was unsafe, it used req->next after having >> (possible) put req in another list >> >> Signed-off-by: Juan Quintela > > Sounds good, but why is this part of vmstate patchs

[Qemu-devel] Re: [PATCH 29/41] virtio-net: in_use and first_multi only handle unsigned values

2009-12-02 Thread Juan Quintela
"Michael S. Tsirkin" wrote: > On Wed, Dec 02, 2009 at 07:30:18PM +0100, Juan Quintela wrote: >> We can change things to be int32_t if that makes more sense (they were sent >> as uint32). >> >> vmstate checks that the type of the value that you sent and the function >> that you use for sending ma

Re: [Qemu-devel] Unclear committer situation

2009-12-02 Thread Alexander Graf
On 02.12.2009, at 19:53, Artyom Tarasenko wrote: > 2009/12/2 Anthony Liguori : >> Artyom Tarasenko wrote: >>> >>> 2009/12/1 Alexander Graf : >>> Hi, Could someone with commit rights please stand up to feel responsible for PPC? Usually, when I send a patch t

[Qemu-devel] Re: [PATCH 27/41] virtio-net: abstract vlans operations

2009-12-02 Thread Juan Quintela
"Michael S. Tsirkin" wrote: > On Wed, Dec 02, 2009 at 07:26:30PM +0100, Juan Quintela wrote: >> "Michael S. Tsirkin" wrote: >> > On Wed, Dec 02, 2009 at 01:04:25PM +0100, Juan Quintela wrote: >> >> >> >> Signed-off-by: Juan Quintela >> >> --- >> >> hw/virtio-net.c | 21 ++---

Re: [Qemu-devel] Unclear committer situation

2009-12-02 Thread Artyom Tarasenko
2009/12/2 Anthony Liguori : > Artyom Tarasenko wrote: >> >> 2009/12/1 Alexander Graf : >> >>> >>> Hi, >>> >>> Could someone with commit rights please stand up to feel responsible for >>> PPC? >>> >>> Usually, when I send a patch to qemu-devel, I know who to address to >>> increase chances of it get

[Qemu-devel] Re: [PATCH 31/41] virtio-net: we know macs size at compile time, make it static

2009-12-02 Thread Alex Williamson
On Wed, 2009-12-02 at 19:33 +0100, Juan Quintela wrote: > "Michael S. Tsirkin" wrote: > > No objection to this or similar change with vlans, > > but I'd like to know why was this made a separate buffer > > originally. > > Dunno, either, but I think that this has been always that way. > > commit

[Qemu-devel] Re: Unclear committer situation

2009-12-02 Thread Artyom Tarasenko
2009/12/2 Jan Kiszka : > Artyom Tarasenko wrote: >> 2009/12/1 Alexander Graf : >>> Hi, >>> >>> Could someone with commit rights please stand up to feel responsible for >>> PPC? >>> >>> Usually, when I send a patch to qemu-devel, I know who to address to >>> increase chances of it getting committed.

[Qemu-devel] Re: [PATCH 06/41] virtio: Use DO_UPCAST instead of a cast

2009-12-02 Thread Michael S. Tsirkin
On Wed, Dec 02, 2009 at 07:42:35PM +0100, Juan Quintela wrote: > "Michael S. Tsirkin" wrote: > > On Wed, Dec 02, 2009 at 07:19:17PM +0100, Juan Quintela wrote: > >> "Michael S. Tsirkin" wrote: > >> > On Wed, Dec 02, 2009 at 01:04:04PM +0100, Juan Quintela wrote: > >> >> virtio_common_init() creat

[Qemu-devel] Re: [PATCH 11/41] virtio: Introduce type field to distingish between PCI and Syborg

2009-12-02 Thread Michael S. Tsirkin
On Wed, Dec 02, 2009 at 01:04:09PM +0100, Juan Quintela wrote: > > Signed-off-by: Juan Quintela Let's just use binding for this. > --- > hw/syborg_virtio.c |1 + > hw/virtio-pci.c|2 +- > hw/virtio.h|6 ++ > 3 files changed, 8 insertions(+), 1 deletions(-) > > diff

[Qemu-devel] Re: Live migration of x86-64 kvm guests broken?

2009-12-02 Thread Jan Kiszka
Ryan Harper wrote: > * Jan Kiszka [2009-12-02 12:18]: >> Ryan Harper wrote: >>> * Jan Kiszka [2009-12-02 12:07]: Ryan Harper wrote: > * Jan Kiszka [2009-12-02 09:28]: >> Hi, >> >> I'm facing stalled x86-64 guests after live migration when using kvm >> (share disk images)

[Qemu-devel] Re: [PATCH 06/41] virtio: Use DO_UPCAST instead of a cast

2009-12-02 Thread Juan Quintela
"Michael S. Tsirkin" wrote: > On Wed, Dec 02, 2009 at 07:19:17PM +0100, Juan Quintela wrote: >> "Michael S. Tsirkin" wrote: >> > On Wed, Dec 02, 2009 at 01:04:04PM +0100, Juan Quintela wrote: >> >> virtio_common_init() creates a struct with the right size, DO_UPCAST >> >> is the appropiate thing

[Qemu-devel] Re: [PATCH 01/41] virtio: Teach virtio-balloon about DO_UPCAST

2009-12-02 Thread Michael S. Tsirkin
On Wed, Dec 02, 2009 at 01:03:59PM +0100, Juan Quintela wrote: > > Signed-off-by: Juan Quintela container_of please > --- > hw/virtio-balloon.c | 11 +++ > 1 files changed, 3 insertions(+), 8 deletions(-) > > diff --git a/hw/virtio-balloon.c b/hw/virtio-balloon.c > index cfd3b41..23

[Qemu-devel] Re: [PATCH 33/41] virtio-net: port to vmstate

2009-12-02 Thread Michael S. Tsirkin
On Wed, Dec 02, 2009 at 07:38:03PM +0100, Juan Quintela wrote: > "Michael S. Tsirkin" wrote: > > On Wed, Dec 02, 2009 at 01:04:31PM +0100, Juan Quintela wrote: > >> > >> Signed-off-by: Juan Quintela > >> --- > >> hw/virtio-net.c | 148 > >> -

[Qemu-devel] Re: [PATCH 33/41] virtio-net: port to vmstate

2009-12-02 Thread Michael S. Tsirkin
On Wed, Dec 02, 2009 at 01:04:31PM +0100, Juan Quintela wrote: > > Signed-off-by: Juan Quintela > --- > hw/virtio-net.c | 148 > --- > 1 files changed, 64 insertions(+), 84 deletions(-) > > diff --git a/hw/virtio-net.c b/hw/virtio-net.c > in

Re: [Qemu-devel] Unclear committer situation

2009-12-02 Thread Anthony Liguori
Artyom Tarasenko wrote: 2009/12/1 Alexander Graf : Hi, Could someone with commit rights please stand up to feel responsible for PPC? Usually, when I send a patch to qemu-devel, I know who to address to increase chances of it getting committed. For kvm/vnc/block I just CC Anthony, for Audio

[Qemu-devel] Re: [PATCH 33/41] virtio-net: port to vmstate

2009-12-02 Thread Juan Quintela
"Michael S. Tsirkin" wrote: > On Wed, Dec 02, 2009 at 01:04:31PM +0100, Juan Quintela wrote: >> >> Signed-off-by: Juan Quintela >> --- >> hw/virtio-net.c | 148 >> --- >> 1 files changed, 64 insertions(+), 84 deletions(-) >> >> diff --git a

[Qemu-devel] Re: [PATCH 31/41] virtio-net: we know macs size at compile time, make it static

2009-12-02 Thread Juan Quintela
"Michael S. Tsirkin" wrote: > No objection to this or similar change with vlans, > but I'd like to know why was this made a separate buffer > originally. Dunno, either, but I think that this has been always that way. commit b6503ed9b8815ecfb82fe9faba28936365321248 was when it was introduced Al

[Qemu-devel] Re: Live migration of x86-64 kvm guests broken?

2009-12-02 Thread Ryan Harper
* Jan Kiszka [2009-12-02 12:18]: > Ryan Harper wrote: > > * Jan Kiszka [2009-12-02 12:07]: > >> Ryan Harper wrote: > >>> * Jan Kiszka [2009-12-02 09:28]: > Hi, > > I'm facing stalled x86-64 guests after live migration when using kvm > (share disk images). This does not happen

[Qemu-devel] Re: [PATCH 29/41] virtio-net: in_use and first_multi only handle unsigned values

2009-12-02 Thread Michael S. Tsirkin
On Wed, Dec 02, 2009 at 07:30:18PM +0100, Juan Quintela wrote: > "Michael S. Tsirkin" wrote: > > On Wed, Dec 02, 2009 at 01:04:27PM +0100, Juan Quintela wrote: > >> And they were saved/loaded as unsigned already > > > > I'm not sure how does on save/load a value as unsigned. > > Could you please p

[Qemu-devel] Re: [PATCH 27/41] virtio-net: abstract vlans operations

2009-12-02 Thread Michael S. Tsirkin
On Wed, Dec 02, 2009 at 07:26:30PM +0100, Juan Quintela wrote: > "Michael S. Tsirkin" wrote: > > On Wed, Dec 02, 2009 at 01:04:25PM +0100, Juan Quintela wrote: > >> > >> Signed-off-by: Juan Quintela > >> --- > >> hw/virtio-net.c | 21 ++--- > >> 1 files changed, 18 insertions(

[Qemu-devel] Re: Unclear committer situation

2009-12-02 Thread Jan Kiszka
Artyom Tarasenko wrote: > 2009/12/1 Alexander Graf : >> Hi, >> >> Could someone with commit rights please stand up to feel responsible for >> PPC? >> >> Usually, when I send a patch to qemu-devel, I know who to address to >> increase chances of it getting committed. For kvm/vnc/block I just CC >> A

[Qemu-devel] Re: [PATCH 29/41] virtio-net: in_use and first_multi only handle unsigned values

2009-12-02 Thread Juan Quintela
"Michael S. Tsirkin" wrote: > On Wed, Dec 02, 2009 at 01:04:27PM +0100, Juan Quintela wrote: >> And they were saved/loaded as unsigned already > > I'm not sure how does on save/load a value as unsigned. > Could you please provide motivation for this > and similar changes? > Not that it matters ver

[Qemu-devel] Re: [PATCH 15/41] virtio: remove save/load_queue for virtio

2009-12-02 Thread Michael S. Tsirkin
On Wed, Dec 02, 2009 at 07:22:11PM +0100, Juan Quintela wrote: > "Michael S. Tsirkin" wrote: > > On Wed, Dec 02, 2009 at 01:04:13PM +0100, Juan Quintela wrote: > >> diff --git a/hw/virtio.c b/hw/virtio.c > >> index c136005..b565bf9 100644 > >> --- a/hw/virtio.c > >> +++ b/hw/virtio.c > >> @@ -643,

[Qemu-devel] Re: [PATCH 27/41] virtio-net: abstract vlans operations

2009-12-02 Thread Juan Quintela
"Michael S. Tsirkin" wrote: > On Wed, Dec 02, 2009 at 01:04:25PM +0100, Juan Quintela wrote: >> >> Signed-off-by: Juan Quintela >> --- >> hw/virtio-net.c | 21 ++--- >> 1 files changed, 18 insertions(+), 3 deletions(-) >> >> diff --git a/hw/virtio-net.c b/hw/virtio-net.c >> i

[Qemu-devel] Re: [PATCH 19/41] virtio: use the right types for VirtQueue elements

2009-12-02 Thread Michael S. Tsirkin
On Wed, Dec 02, 2009 at 07:24:12PM +0100, Juan Quintela wrote: > "Michael S. Tsirkin" wrote: > > On Wed, Dec 02, 2009 at 01:04:17PM +0100, Juan Quintela wrote: > >> > >> Signed-off-by: Juan Quintela > >> --- > >> hw/virtio.c |8 > >> 1 files changed, 4 insertions(+), 4 deletions(-)

[Qemu-devel] Re: [PATCH 19/41] virtio: use the right types for VirtQueue elements

2009-12-02 Thread Juan Quintela
"Michael S. Tsirkin" wrote: > On Wed, Dec 02, 2009 at 01:04:17PM +0100, Juan Quintela wrote: >> >> Signed-off-by: Juan Quintela >> --- >> hw/virtio.c |8 >> 1 files changed, 4 insertions(+), 4 deletions(-) >> >> diff --git a/hw/virtio.c b/hw/virtio.c >> index fd617ff..2b36cad 1006

[Qemu-devel] Re: [PATCH 21/41] virtio: port to vmstate

2009-12-02 Thread Michael S. Tsirkin
On Wed, Dec 02, 2009 at 01:04:19PM +0100, Juan Quintela wrote: > We need to do the virt queue msix and not msix version because we know > if there is msix at virtio level, not at queue element level > > Signed-off-by: Juan Quintela > --- > hw/hw.h | 10 + > hw/virtio.c | 121 > ++

[Qemu-devel] Re: [PATCH 15/41] virtio: remove save/load_queue for virtio

2009-12-02 Thread Juan Quintela
"Michael S. Tsirkin" wrote: > On Wed, Dec 02, 2009 at 01:04:13PM +0100, Juan Quintela wrote: >> diff --git a/hw/virtio.c b/hw/virtio.c >> index c136005..b565bf9 100644 >> --- a/hw/virtio.c >> +++ b/hw/virtio.c >> @@ -643,8 +643,10 @@ void virtio_save(VirtIODevice *vdev, QEMUFile *f) >> qe

[Qemu-devel] Re: [PATCH 06/41] virtio: Use DO_UPCAST instead of a cast

2009-12-02 Thread Michael S. Tsirkin
On Wed, Dec 02, 2009 at 07:19:17PM +0100, Juan Quintela wrote: > "Michael S. Tsirkin" wrote: > > On Wed, Dec 02, 2009 at 01:04:04PM +0100, Juan Quintela wrote: > >> virtio_common_init() creates a struct with the right size, DO_UPCAST > >> is the appropiate thing here > >> > >> Signed-off-by: Juan

[Qemu-devel] Re: [PATCH 41/41] virtio: virtio_save/load are not used anymore

2009-12-02 Thread Michael S. Tsirkin
You probably can just roll "not used anymore" lines in the parent patch. It does not help splitting this part out IMO. On Wed, Dec 02, 2009 at 01:04:39PM +0100, Juan Quintela wrote: > > Signed-off-by: Juan Quintela > --- > hw/virtio.c | 10 -- > hw/virtio.h |4 > 2 files chan

[Qemu-devel] Re: [PATCH 06/41] virtio: Use DO_UPCAST instead of a cast

2009-12-02 Thread Juan Quintela
"Michael S. Tsirkin" wrote: > On Wed, Dec 02, 2009 at 01:04:04PM +0100, Juan Quintela wrote: >> virtio_common_init() creates a struct with the right size, DO_UPCAST >> is the appropiate thing here >> >> Signed-off-by: Juan Quintela > > BTW why not container_of? That one does not require > field

[Qemu-devel] Re: Live migration of x86-64 kvm guests broken?

2009-12-02 Thread Juan Quintela
Jan Kiszka wrote: > Hi, > > I'm facing stalled x86-64 guests after live migration when using kvm > (share disk images). This does not happen with x86-32 guests or when > disabling kvm. Both qemu and qemu-kvm git heads are affected (recent > vmstate fixes applied). Running I/O load during the migra

[Qemu-devel] Re: Live migration of x86-64 kvm guests broken?

2009-12-02 Thread Jan Kiszka
Ryan Harper wrote: > * Jan Kiszka [2009-12-02 12:07]: >> Ryan Harper wrote: >>> * Jan Kiszka [2009-12-02 09:28]: Hi, I'm facing stalled x86-64 guests after live migration when using kvm (share disk images). This does not happen with x86-32 guests or when disabling kvm. Bo

[Qemu-devel] Re: Live migration of x86-64 kvm guests broken?

2009-12-02 Thread Ryan Harper
* Jan Kiszka [2009-12-02 12:07]: > Ryan Harper wrote: > > * Jan Kiszka [2009-12-02 09:28]: > >> Hi, > >> > >> I'm facing stalled x86-64 guests after live migration when using kvm > >> (share disk images). This does not happen with x86-32 guests or when > >> disabling kvm. Both qemu and qemu-kvm g

[Qemu-devel] Re: Live migration of x86-64 kvm guests broken?

2009-12-02 Thread Jan Kiszka
Ryan Harper wrote: > * Jan Kiszka [2009-12-02 09:28]: >> Hi, >> >> I'm facing stalled x86-64 guests after live migration when using kvm >> (share disk images). This does not happen with x86-32 guests or when >> disabling kvm. Both qemu and qemu-kvm git heads are affected (recent >> vmstate fixes a

[Qemu-devel] sparc and -icount option

2009-12-02 Thread Artyom Tarasenko
Is -icount option supposed to work under qemu-system-sparc? Tried a couple of values between 1 and 30 and get qemu: fatal: Raised interrupt while not in I/O function

[Qemu-devel] Re: [PATCH 40/41] virtio-blk: port to vmstate

2009-12-02 Thread Michael S. Tsirkin
On Wed, Dec 02, 2009 at 01:04:38PM +0100, Juan Quintela wrote: > This driver send a struct directly in the wire, where the struct > contains: > - target_phis_addr_t (can be 32 or 64 bits depending of host) > - void * (on host) > - size_t. > > It has no hope of working across 32/64 or big/little en

[Qemu-devel] Re: [PATCH 38/41] virtio-blk: use QLIST for the list of requests

2009-12-02 Thread Michael S. Tsirkin
On Wed, Dec 02, 2009 at 01:04:36PM +0100, Juan Quintela wrote: > viltio_blak_dma_restart_bh() was unsafe, it used req->next after having > (possible) put req in another list > > Signed-off-by: Juan Quintela Sounds good, but why is this part of vmstate patchset? > --- > hw/virtio-blk.c | 29 +

[Qemu-devel] Staging update (0.12 pending freeze)

2009-12-02 Thread Anthony Liguori
I've got all of the patches I'm considering for 0.12 currently in staging. I'm going to work through and test/commit these in a few chunks over the next few days before freezing the tree. If you have a pending patch that you think should be in 0.12, please check to make sure it's there. If y

[Qemu-devel] Re: Live migration of x86-64 kvm guests broken?

2009-12-02 Thread Ryan Harper
* Jan Kiszka [2009-12-02 09:28]: > Hi, > > I'm facing stalled x86-64 guests after live migration when using kvm > (share disk images). This does not happen with x86-32 guests or when > disabling kvm. Both qemu and qemu-kvm git heads are affected (recent > vmstate fixes applied). Running I/O load

Re: [Qemu-devel] [PATCH] usb-net: use qdev for -usbdevice

2009-12-02 Thread Anthony Liguori
Can you update this against staging (or master if you want 24 hours) to take into account Mark's nic refactoring series? The changes looked non-trivial to me. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH, RFC] tap-linux: support opening arbitrary char devices

2009-12-02 Thread Anthony Liguori
Arnd Bergmann wrote: With the upcoming macvtap, we will want to open devices other than /dev/net/tun but no longer need to call TUNSETIFF. What are the names of these devices and how do you the character devices get created in the first place? This really isn't an "arbitrary" char device

Re: [Qemu-devel] Unclear committer situation

2009-12-02 Thread Artyom Tarasenko
2009/12/1 Alexander Graf : > Hi, > > Could someone with commit rights please stand up to feel responsible for > PPC? > > Usually, when I send a patch to qemu-devel, I know who to address to > increase chances of it getting committed. For kvm/vnc/block I just CC > Anthony, for Audio I just CC malc,

[Qemu-devel] Live migration of x86-64 kvm guests broken?

2009-12-02 Thread Jan Kiszka
Hi, I'm facing stalled x86-64 guests after live migration when using kvm (share disk images). This does not happen with x86-32 guests or when disabling kvm. Both qemu and qemu-kvm git heads are affected (recent vmstate fixes applied). Running I/O load during the migration (e.g. a simple "ls -R /")

[Qemu-devel] Re: [PATCH 33/41] virtio-net: port to vmstate

2009-12-02 Thread Michael S. Tsirkin
On Wed, Dec 02, 2009 at 01:04:31PM +0100, Juan Quintela wrote: > > Signed-off-by: Juan Quintela > --- > hw/virtio-net.c | 148 > --- > 1 files changed, 64 insertions(+), 84 deletions(-) > > diff --git a/hw/virtio-net.c b/hw/virtio-net.c > in

Re: [Qemu-devel] [PATCH] isa: configure serial+parallel by index.

2009-12-02 Thread Anthony Liguori
Markus Armbruster wrote: The commit message is bogus. The patch is a minor fix of commit e8ee28fb, and the message is a copy of that commit's message. Thanks, I've updated the commit message appropriately. Regards, Anthony Liguori

[Qemu-devel] Re: [PATCH 31/41] virtio-net: we know macs size at compile time, make it static

2009-12-02 Thread Michael S. Tsirkin
No objection to this or similar change with vlans, but I'd like to know why was this made a separate buffer originally. On Wed, Dec 02, 2009 at 01:04:29PM +0100, Juan Quintela wrote: > > Signed-off-by: Juan Quintela > --- > hw/virtio-net.c |6 +- > 1 files changed, 1 insertions(+), 5 d

[Qemu-devel] Re: [PATCH 29/41] virtio-net: in_use and first_multi only handle unsigned values

2009-12-02 Thread Michael S. Tsirkin
On Wed, Dec 02, 2009 at 01:04:27PM +0100, Juan Quintela wrote: > And they were saved/loaded as unsigned already I'm not sure how does on save/load a value as unsigned. Could you please provide motivation for this and similar changes? Not that it matters very much, but int is slightly cleaner than

Re: [Qemu-devel] [PATCH 1/9] chardev: add greeting

2009-12-02 Thread Anthony Liguori
Gerd Hoffmann wrote: On 11/23/09 16:20, Anthony Liguori wrote: Gerd Hoffmann wrote: On 11/23/09 14:26, Paul Brook wrote: I thinking more that this should be done by the character backend itself. For example, the "graphical" consoles should probably be putting this as part of the window title

[Qemu-devel] Re: [PATCH 28/41] virtio-net: make vlan operations on uint8_t, not uint32_t

2009-12-02 Thread Michael S. Tsirkin
On Wed, Dec 02, 2009 at 01:04:26PM +0100, Juan Quintela wrote: > This fixes endianess problems. Using ints and saving the state as bytes > break cross-endian migration. > > Signed-off-by: Juan Quintela Good catch in itself, but relies on a broken patch before that. > --- > hw/virtio-net.c |

[Qemu-devel] Re: [PATCH 27/41] virtio-net: abstract vlans operations

2009-12-02 Thread Michael S. Tsirkin
On Wed, Dec 02, 2009 at 01:04:25PM +0100, Juan Quintela wrote: > > Signed-off-by: Juan Quintela > --- > hw/virtio-net.c | 21 ++--- > 1 files changed, 18 insertions(+), 3 deletions(-) > > diff --git a/hw/virtio-net.c b/hw/virtio-net.c > index 97db0d0..cf13e94 100644 > --- a/hw

[Qemu-devel] Re: [PATCH 16/41] virtio: Add num_pci_queues field

2009-12-02 Thread Michael S. Tsirkin
On Wed, Dec 02, 2009 at 01:04:14PM +0100, Juan Quintela wrote: > > Signed-off-by: Juan Quintela > --- > hw/virtio.c | 32 +++- > hw/virtio.h |2 ++ > 2 files changed, 21 insertions(+), 13 deletions(-) > > diff --git a/hw/virtio.c b/hw/virtio.c > index b565bf9..

[Qemu-devel] Re: [PATCH 15/41] virtio: remove save/load_queue for virtio

2009-12-02 Thread Michael S. Tsirkin
On Wed, Dec 02, 2009 at 01:04:13PM +0100, Juan Quintela wrote: > It was used only for PCI virtio devices, state that explicitely > > Signed-off-by: Juan Quintela > --- > hw/virtio-pci.c | 24 ++-- > hw/virtio.c | 22 -- > hw/virtio.h |4 ++-

[Qemu-devel] Re: [PATCH 12/41] virtio-pci: port pci config to vmstate

2009-12-02 Thread Michael S. Tsirkin
On Wed, Dec 02, 2009 at 01:04:10PM +0100, Juan Quintela wrote: > > Signed-off-by: Juan Quintela > --- > hw/virtio-pci.c | 72 ++ > 1 files changed, 50 insertions(+), 22 deletions(-) > > diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c > index

Re: [Qemu-devel] [PATCH 01/11] S/390 CPU fake emulation

2009-12-02 Thread Paul Brook
> > Our cpu keeps multiple seperate address spaces open at the same time > > (similar to x86 with a bunch of cr0s), defined by address space control > > elements in various control registers. Linux uses primary, secondary and > > home space to address user space and kernel space. The third one is u

[Qemu-devel] Re: [PATCH v2] Don't leak file descriptors

2009-12-02 Thread Anthony Liguori
Kevin Wolf wrote: Am 02.12.2009 12:24, schrieb Kevin Wolf: We're leaking file descriptors to child processes. Set FD_CLOEXEC on file descriptors that don't need to be passed to children to stop this misbehaviour. Signed-off-by: Kevin Wolf --- v2: - The existence of SOCK_CLOEXEC doesn't mea

Re: [Qemu-devel] [PATCH v2 04/11] qemu_flush_work for remote vcpu execution

2009-12-02 Thread Glauber Costa
On Wed, Dec 02, 2009 at 11:54:45AM -0200, Marcelo Tosatti wrote: > On Wed, Dec 02, 2009 at 11:41:19AM -0200, Glauber Costa wrote: > > > KVM vcpu threads should block SIGUSR1, set the in-kernel signal mask > > > with KVM_SET_SIGNAL_MASK ioctl, and eat the signal in > > > qemu_wait_io_event (qemu_fl

[Qemu-devel] Re: [PATCH 20/41] virtio: abstract test for save/load values

2009-12-02 Thread Michael S. Tsirkin
This does not make a lot of sense separately: you are changing routines that you yourself then remove. And there is another helper not_msix which you add in the next patch. Maybe just roll this patch in with the next one and be done with it. On Wed, Dec 02, 2009 at 01:04:18PM +0100, Juan Quint

Re: [Qemu-devel] [PATCH v2 04/11] qemu_flush_work for remote vcpu execution

2009-12-02 Thread Marcelo Tosatti
On Wed, Dec 02, 2009 at 11:41:19AM -0200, Glauber Costa wrote: > > KVM vcpu threads should block SIGUSR1, set the in-kernel signal mask > > with KVM_SET_SIGNAL_MASK ioctl, and eat the signal in > > qemu_wait_io_event (qemu_flush_work should run after eating > > the signal). Similarly to qemu-kvm's

[Qemu-devel] Re: [PATCH 19/41] virtio: use the right types for VirtQueue elements

2009-12-02 Thread Michael S. Tsirkin
On Wed, Dec 02, 2009 at 01:04:17PM +0100, Juan Quintela wrote: > > Signed-off-by: Juan Quintela > --- > hw/virtio.c |8 > 1 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/hw/virtio.c b/hw/virtio.c > index fd617ff..2b36cad 100644 > --- a/hw/virtio.c > +++ b/hw/virti

[Qemu-devel] [PATCH 10/11] Use __thread where available.

2009-12-02 Thread Glauber Costa
It is much faster than pthread_{g,s}et_specific. Signed-off-by: Glauber Costa --- configure | 17 + vl.c | 16 2 files changed, 33 insertions(+), 0 deletions(-) diff --git a/configure b/configure index dca5a43..ce7bcc4 100755 --- a/configure +++ b/confi

[Qemu-devel] [PATCH 11/11] remove smp restriction from kvm

2009-12-02 Thread Glauber Costa
We don't support smp without irqchip in kernel, so only abort in that situation Signed-off-by: Glauber Costa --- kvm-all.c | 10 +- kvm.h |2 ++ target-i386/kvm.c |7 +++ target-ppc/kvm.c |5 + 4 files changed, 19 insertions(+), 5 deletions(-)

[Qemu-devel] [PATCH 09/11] Use per-cpu reset handlers.

2009-12-02 Thread Glauber Costa
The proposal in this patch is to add a system_reset caller that only resets state related to the cpu. This will guarantee that does functions are called from the cpu-threads, not the I/O thread. In principle, it might seem close to the remote execution mechanism, but: * It does not involve any ex

[Qemu-devel] [PATCH 06/11] flush state in migration post_load

2009-12-02 Thread Glauber Costa
This have already been identified in qemu-kvm. We have to synchronously tell the kernel about the APIC state. Otherwise, other cpus can see bogus state for this lapic. Signed-off-by: Glauber Costa --- hw/apic-kvm.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/apic

[Qemu-devel] [PATCH 07/11] Don't call kvm cpu reset on initialization

2009-12-02 Thread Glauber Costa
All reset functions are called from the same place, and this was a leftover Signed-off-by: Glauber Costa --- kvm-all.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/kvm-all.c b/kvm-all.c index 596416a..1072d63 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -204,8 +204,6 @@

[Qemu-devel] [PATCH 08/11] use cpu_kick instead of direct signalling.

2009-12-02 Thread Glauber Costa
Before signalling a cpu, we have to set exit_request = 1, otherwise it may go back to executing itself. So every cpu wakeup becomes at least two statements. The qemu_cpu_kick already provides semantics to that. So use it all over. Signed-off-by: Glauber Costa --- vl.c |6 +++--- 1 files chan

[Qemu-devel] [PATCH 05/11] tell kernel about all registers instead of just mp_state

2009-12-02 Thread Glauber Costa
This fix a bug with -smp in kvm. Since we have updated apic_base, we also have to tell kernel about it. So instead of just updating mp_state, update every regs. It is mandatory that this happens synchronously, without waiting for the next vcpu run. Otherwise, if we are migrating, or initializing t

  1   2   3   >