[Qemu-devel] [RFC 09/24] qed: add qed_bdrv_get_mapping()

2011-07-28 Thread Devin Nakamura
Fuction to get drive mapping from qed images Signed-off-by: Devin Nakamura --- block/qed.c | 32 1 files changed, 32 insertions(+), 0 deletions(-) diff --git a/block/qed.c b/block/qed.c index 00cf895..dadb7f8 100644 --- a/block/qed.c +++ b/block/qed.c @@ -1451

Re: [Qemu-devel] Log in to the OS through qemu

2011-07-28 Thread bala suru
Hi, can tell me how to set-up th SDL window for the qemu ..? On Thu, Jul 28, 2011 at 11:17 PM, Mulyadi Santosa wrote: > On Thu, Jul 28, 2011 at 23:19, bala suru wrote: > > Hi, > > I have installed OS on VMs (KVM-Qemu) , one version is ttylinux 9.0 and > > other is ttylinux 12 . > > > > I have

[Qemu-devel] [RFC 21/24] qcow2: add qcow2_open_conversion_target()

2011-07-28 Thread Devin Nakamura
Still in very raw form. Not likely to work yet Signed-off-by: Devin Nakamura --- block/qcow2.c | 124 + 1 files changed, 124 insertions(+), 0 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index 86df65d..f1e1e12 100644 --- a/blo

[Qemu-devel] [RFC 10/24] qed: add qed_bdrv_map()

2011-07-28 Thread Devin Nakamura
Conflicts: block_int.h Signed-off-by: Devin Nakamura --- block.c |4 ++-- block.h |4 ++-- block/qed.c | 47 +++ 3 files changed, 51 insertions(+), 4 deletions(-) diff --git a/block.c b/block.c index 28b4418..dca3687 100644

[Qemu-devel] [RFC 12/24] qed: add bdrv_qed_copy_header()

2011-07-28 Thread Devin Nakamura
Signed-off-by: Devin Nakamura --- block/qed.c | 16 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/block/qed.c b/block/qed.c index b05224a..556512b 100644 --- a/block/qed.c +++ b/block/qed.c @@ -1579,6 +1579,21 @@ static int bdrv_qed_map(BlockDriverState *bs,

[Qemu-devel] [RFC 20/24] qcow2: add get_conversion_options()

2011-07-28 Thread Devin Nakamura
Signed-off-by: Devin Nakamura --- block/qcow2.c | 24 +--- 1 files changed, 21 insertions(+), 3 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index 3bb28d2..86df65d 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -1427,6 +1427,23 @@ static int qcow2_copy_header

[Qemu-devel] [RFC 14/24] qcow2: fix typo in documentation for qcow2_get_cluster_offset()

2011-07-28 Thread Devin Nakamura
Documentation states the num is measured in clusters, but its actually measured in sectors Signed-off-by: Devin Nakamura --- block/qcow2-cluster.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c index 882f50a..ca56918 1006

Re: [Qemu-devel] [PATCH] v6 revamp acpitable parsing and allow to specify complete (headerful) table

2011-07-28 Thread Michael Tokarev
29.07.2011 05:49, Isaku Yamahata wrote: > On Fri, Jul 15, 2011 at 07:51:43PM +0300, Blue Swirl wrote: >> On Fri, Jul 15, 2011 at 6:18 PM, John Baboval >> wrote: >>> Is there something I can do to help take this patch the rest of the way? >>> >>> I'd hate to see it die because of a style issue and

[Qemu-devel] [RFC 04/24] block: add bdrv_get_mapping()

2011-07-28 Thread Devin Nakamura
Conflicts: block.h Signed-off-by: Devin Nakamura --- block.c | 29 + block.h |2 ++ 2 files changed, 31 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index 9530577..d0019c4 100644 --- a/block.c +++ b/block.c @@ -3082,3 +3082,32 @@ int bd

[Qemu-devel] [RFC 15/24] qcow2: split up the creation of new refcount table from the act of checking it

2011-07-28 Thread Devin Nakamura
Signed-off-by: Devin Nakamura --- block/qcow2-refcount.c | 39 +-- 1 files changed, 29 insertions(+), 10 deletions(-) diff --git a/block/qcow2-refcount.c b/block/qcow2-refcount.c index 14b2f67..75f1f88 100644 --- a/block/qcow2-refcount.c +++ b/block/qcow2-r

[Qemu-devel] [RFC 13/24] qed: add bdrv_qed_get_conversion_options()

2011-07-28 Thread Devin Nakamura
Signed-off-by: Devin Nakamura --- block/qed.c | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/block/qed.c b/block/qed.c index 556512b..26e43e2 100644 --- a/block/qed.c +++ b/block/qed.c @@ -1594,6 +1594,18 @@ static int bdrv_qed_copy_header(BlockDriverState

[Qemu-devel] [RFC 05/24] block: add bdrv_map()

2011-07-28 Thread Devin Nakamura
Signed-off-by: Devin Nakamura --- block.c | 14 ++ block.h |2 ++ 2 files changed, 16 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index d0019c4..98a9491 100644 --- a/block.c +++ b/block.c @@ -3111,3 +3111,17 @@ int bdrv_get_mapping(BlockDriverState *bs, uint64

[Qemu-devel] [RFC 06/24] block: add bdrv_copy_header()

2011-07-28 Thread Devin Nakamura
Signed-off-by: Devin Nakamura --- block.c | 12 block.h |2 ++ 2 files changed, 14 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index 98a9491..28b4418 100644 --- a/block.c +++ b/block.c @@ -3125,3 +3125,15 @@ int bdrv_map(BlockDriverState *bs, uint64_t *guest

[Qemu-devel] [RFC 07/24] qed: make qed_alloc_clusters round up offset to nearest cluster

2011-07-28 Thread Devin Nakamura
Signed-off-by: Devin Nakamura --- block/qed.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/block/qed.c b/block/qed.c index 3970379..00cf895 100644 --- a/block/qed.c +++ b/block/qed.c @@ -263,6 +263,9 @@ static int qed_read_string(BlockDriverState *file, uint64_t of

[Qemu-devel] [RFC 22/24] qemu-io: make map command use new block mapping function

2011-07-28 Thread Devin Nakamura
bdrv_get_mapping will be used when it is defined, otherwise default to old behaviour. Signed-off-by: Devin Nakamura --- qemu-io.c | 23 ++- 1 files changed, 22 insertions(+), 1 deletions(-) diff --git a/qemu-io.c b/qemu-io.c index a553d0c..caf51fe 100644 --- a/qemu-io.c ++

Re: [Qemu-devel] [PATCH v2] pci: Common overflow prevention

2011-07-28 Thread Michael S. Tsirkin
On Fri, Jul 29, 2011 at 10:01:43AM +0900, Isaku Yamahata wrote: > On Thu, Jul 28, 2011 at 11:40:21AM +0300, Michael S. Tsirkin wrote: > > I don't see a problem with this, but could you please clarify when does > > this happen? I think this is only possible for a pci device > > behind an express roo

[Qemu-devel] [RFC 17/24] qcow2: add qcow2_get_mapping

2011-07-28 Thread Devin Nakamura
Signed-off-by: Devin Nakamura --- block/qcow2.c | 36 1 files changed, 36 insertions(+), 0 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index 48e1b95..05ea40c 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -1340,6 +1340,40 @@ static int qcow2

[Qemu-devel] [RFC 08/24] qed: add qed_find_cluster_sync()

2011-07-28 Thread Devin Nakamura
Signed-off-by: Devin Nakamura --- block/qed-cluster.c | 35 +++ block/qed.h |4 2 files changed, 39 insertions(+), 0 deletions(-) diff --git a/block/qed-cluster.c b/block/qed-cluster.c index 3e19ad1..063b965 100644 --- a/block/qed-cluster.c +++

[Qemu-devel] [RFC 24/24] qemu-img: add inplace conversion to qemu-img

2011-07-28 Thread Devin Nakamura
Signed-off-by: Devin Nakamura --- Makefile |2 + qemu-img-cmds.hx |6 + qemu-img.c | 64 ++ 3 files changed, 72 insertions(+), 0 deletions(-) diff --git a/Makefile b/Makefile index daa3aa0..243c818 100644 --- a/Make

[Qemu-devel] [RFC 23/24] qemu-io: add setmap command

2011-07-28 Thread Devin Nakamura
Signed-off-by: Devin Nakamura --- qemu-io.c | 24 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/qemu-io.c b/qemu-io.c index caf51fe..a49f62a 100644 --- a/qemu-io.c +++ b/qemu-io.c @@ -1601,6 +1601,29 @@ static const cmdinfo_t map_cmd = { }; +stat

[Qemu-devel] [RFC 19/24] qcow2: add qcow2_copy_header()

2011-07-28 Thread Devin Nakamura
Signed-off-by: Devin Nakamura --- block/qcow2.c | 54 ++ 1 files changed, 54 insertions(+), 0 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index b75364d..3bb28d2 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -1374,6 +1374,59 @

[Qemu-devel] [RFC 18/24] qcow2: add qcow2_map

2011-07-28 Thread Devin Nakamura
Signed-off-by: Devin Nakamura --- block/qcow2-cluster.c | 49 + block/qcow2.c |1 + block/qcow2.h |3 +++ 3 files changed, 53 insertions(+), 0 deletions(-) diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c index

[Qemu-devel] [RFC 16/24] qcow2: add qcow2_drop_leaked_clusters()

2011-07-28 Thread Devin Nakamura
Signed-off-by: Devin Nakamura --- block/qcow2-refcount.c | 34 ++ block/qcow2.h |2 ++ 2 files changed, 36 insertions(+), 0 deletions(-) diff --git a/block/qcow2-refcount.c b/block/qcow2-refcount.c index 75f1f88..2f78a71 100644 --- a/block/qcow2-re

[Qemu-devel] [RFC 11/24] qed: add open_conversion_target()

2011-07-28 Thread Devin Nakamura
Signed-off-by: Devin Nakamura --- block/qed.c | 86 +++--- 1 files changed, 69 insertions(+), 17 deletions(-) diff --git a/block/qed.c b/block/qed.c index daf82fd..b05224a 100644 --- a/block/qed.c +++ b/block/qed.c @@ -1451,6 +1451,57 @@ sta

[Qemu-devel] [RFC 02/24] block: add bdrv_get_conversion_options()

2011-07-28 Thread Devin Nakamura
Signed-off-by: Devin Nakamura --- block.c | 13 + block.h |2 ++ 2 files changed, 15 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index 9549b9e..4503b7b 100644 --- a/block.c +++ b/block.c @@ -3037,3 +3037,16 @@ out: return ret; } + +int bdrv_get_convers

[Qemu-devel] [RFC 03/24] block: add bdrv_open_conversion_target()

2011-07-28 Thread Devin Nakamura
Conflicts: block.h Signed-off-by: Devin Nakamura --- block.c | 32 block.h |4 2 files changed, 36 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index 4503b7b..9530577 100644 --- a/block.c +++ b/block.c @@ -3038,6 +3038,38 @@ o

[Qemu-devel] [RFC 01/24] block: add block conversion api

2011-07-28 Thread Devin Nakamura
add functions to block driver interface to support inplace image conversion Signed-off-by: Devin Nakamura --- block.h |2 + block_int.h | 88 +++ 2 files changed, 90 insertions(+), 0 deletions(-) diff --git a/block.h b/block.h in

[Qemu-devel] [RFC 00/24] inplace image conversion

2011-07-28 Thread Devin Nakamura
This series sets out the foundations of an api for in place image conversion, and implements it in the QED and QCOW2 drivers. The basic flow of conversion is as follows: The source image is openened as normal. The source file is the queried for conversion options via bdrv_get_conversion_option

[Qemu-devel] 0.15 testing, spice, wxp

2011-07-28 Thread Rick Vernam
I'd like to do some very high-level testing of qemu-stable-0.15 (qemu-system- x86_64, specifically) running Linux host, Windows XP SP3 guest. I'm afraid that I don't have a ready environment for building the windows guest bits, and the added time requirement simply puts it over the top for me. Are

Re: [Qemu-devel] [PATCH v2 1/1] The codes V2 for QEMU disk I/O limits.

2011-07-28 Thread Zhi Yong Wu
On Thu, Jul 28, 2011 at 10:42 PM, Marcelo Tosatti wrote: > On Thu, Jul 28, 2011 at 12:24:48PM +0800, Zhi Yong Wu wrote: >> On Wed, Jul 27, 2011 at 11:49 PM, Marcelo Tosatti >> wrote: >> > On Wed, Jul 27, 2011 at 06:17:15PM +0800, Zhi Yong Wu wrote: >> >> >> +        wait_time = 1; >> >> >> +    

Re: [Qemu-devel] [PATCH] v6 revamp acpitable parsing and allow to specify complete (headerful) table

2011-07-28 Thread Isaku Yamahata
On Fri, Jul 15, 2011 at 07:51:43PM +0300, Blue Swirl wrote: > On Fri, Jul 15, 2011 at 6:18 PM, John Baboval > wrote: > > Is there something I can do to help take this patch the rest of the way? > > > > I'd hate to see it die because of a style issue and a compiler warning. > > There's also suspic

Re: [Qemu-devel] [PATCH 1/6] VMDK: enable twoGbMaxExtentFlat

2011-07-28 Thread Fam Zheng
Sorry, I missed one line in this patch. Will fix it in V2. On Wed, Jul 27, 2011 at 5:27 PM, Fam Zheng wrote: > Enable the createType 'twoGbMaxExtentFlat'. The supporting code is > already in. > > Signed-off-by: Fam Zheng > --- >  block/vmdk.c |    3 ++- >  1 files changed, 2 insertions(+), 1 del

[Qemu-devel] [Bug 595438] Re: KVM segmentation fault, using SCSI+writeback and linux 2.4 guest

2011-07-28 Thread Serge Hallyn
** Changed in: kvm Status: Confirmed => Invalid -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/595438 Title: KVM segmentation fault, using SCSI+writeback and linux 2.4 guest Status in Kernel

Re: [Qemu-devel] [PATCH] fix disabling interrupts in sun4u

2011-07-28 Thread tsnsaito
At Thu, 28 Jul 2011 16:44:23 +0200, Artyom Tarasenko wrote: > On Thu, Jul 28, 2011 at 3:40 PM, wrote: > > At Thu, 28 Jul 2011 14:50:57 +0200, > > Artyom Tarasenko wrote: > >> On Thu, Jul 28, 2011 at 2:03 PM,   wrote: > >> > At Thu, 28 Jul 2011 13:51:08 +0200, > >> > Artyom Tarasenko wrote: > >> >

Re: [Qemu-devel] [PATCH v2] pci: Common overflow prevention

2011-07-28 Thread Isaku Yamahata
On Thu, Jul 28, 2011 at 11:40:21AM +0300, Michael S. Tsirkin wrote: > I don't see a problem with this, but could you please clarify when does > this happen? I think this is only possible for a pci device > behind an express root. If so, this belongs in pcie_host.c > > I'd also like this info to be

Re: [Qemu-devel] RFC: moving fsfreeze support from the userland guest agent to the guest kernel

2011-07-28 Thread Fernando Luis Vazquez Cao
Michael Roth さんは書きました: On 07/28/2011 03:03 AM, Andrea Arcangeli wrote: On Thu, Jul 28, 2011 at 11:53:50AM +0900, Fernando Luis Vázquez Cao wrote: On Wed, 2011-07-27 at 17:24 +0200, Andrea Arcangeli wrote: making sure no lib is calling any I/O function to be able to defreeze the filesystems lat

Re: [Qemu-devel] [PATCH 1/2] pflash: Support read-only mode

2011-07-28 Thread Jordan Justen
On Thu, Jul 28, 2011 at 11:26, Jan Kiszka wrote: > On 2011-07-27 17:38, Jordan Justen wrote: >> On Wed, Jul 27, 2011 at 02:30, Jan Kiszka wrote: >>> On 2011-07-25 23:34, Jordan Justen wrote: Read-only mode is indicated by bdrv_is_read_only When read-only mode is enabled, no changes

Re: [Qemu-devel] [RFC] Introduce vm_stop_permanent()

2011-07-28 Thread Alon Levy
On Thu, Jul 28, 2011 at 03:22:52PM -0300, Luiz Capitulino wrote: > On Thu, 28 Jul 2011 20:04:58 +0200 > Jan Kiszka wrote: > > > On 2011-07-28 20:00, Luiz Capitulino wrote: > > > On Thu, 28 Jul 2011 19:52:31 +0200 > > > Jan Kiszka wrote: > > > > > >> On 2011-07-28 19:48, Luiz Capitulino wrote: >

Re: [Qemu-devel] [PATCH 1/2] pflash: Support read-only mode

2011-07-28 Thread Jan Kiszka
On 2011-07-27 17:38, Jordan Justen wrote: > On Wed, Jul 27, 2011 at 02:30, Jan Kiszka wrote: >> On 2011-07-25 23:34, Jordan Justen wrote: >>> Read-only mode is indicated by bdrv_is_read_only >>> >>> When read-only mode is enabled, no changes will be made >>> to the flash image in memory, and no bd

Re: [Qemu-devel] [RFC] Introduce vm_stop_permanent()

2011-07-28 Thread Luiz Capitulino
On Thu, 28 Jul 2011 20:04:58 +0200 Jan Kiszka wrote: > On 2011-07-28 20:00, Luiz Capitulino wrote: > > On Thu, 28 Jul 2011 19:52:31 +0200 > > Jan Kiszka wrote: > > > >> On 2011-07-28 19:48, Luiz Capitulino wrote: > >>> On Thu, 28 Jul 2011 14:39:23 -0300 > >>> Luiz Capitulino wrote: > >>> > >>>

Re: [Qemu-devel] [RFC] Introduce vm_stop_permanent()

2011-07-28 Thread Jan Kiszka
On 2011-07-28 20:00, Luiz Capitulino wrote: > On Thu, 28 Jul 2011 19:52:31 +0200 > Jan Kiszka wrote: > >> On 2011-07-28 19:48, Luiz Capitulino wrote: >>> On Thu, 28 Jul 2011 14:39:23 -0300 >>> Luiz Capitulino wrote: >>> On Thu, 28 Jul 2011 17:20:41 +0200 Jan Kiszka wrote: > O

Re: [Qemu-devel] [RFC] Introduce vm_stop_permanent()

2011-07-28 Thread Luiz Capitulino
On Thu, 28 Jul 2011 19:52:31 +0200 Jan Kiszka wrote: > On 2011-07-28 19:48, Luiz Capitulino wrote: > > On Thu, 28 Jul 2011 14:39:23 -0300 > > Luiz Capitulino wrote: > > > >> On Thu, 28 Jul 2011 17:20:41 +0200 > >> Jan Kiszka wrote: > >> > >>> On 2011-07-28 17:18, Luiz Capitulino wrote: >

Re: [Qemu-devel] [RFC][PATCH 0/21] QEMU Object Model

2011-07-28 Thread Anthony Liguori
On 07/28/2011 10:47 AM, Paolo Bonzini wrote: On 07/28/2011 05:04 PM, Anthony Liguori wrote: The only way I can see is to teach each device about this interface and then have a common bus. That implies that you have: class GoldfishEnumerator : public Device { GoldfishDevice *slots[N]; FWIW, th

Re: [Qemu-devel] [RFC] Introduce vm_stop_permanent()

2011-07-28 Thread Jan Kiszka
On 2011-07-28 19:48, Luiz Capitulino wrote: > On Thu, 28 Jul 2011 14:39:23 -0300 > Luiz Capitulino wrote: > >> On Thu, 28 Jul 2011 17:20:41 +0200 >> Jan Kiszka wrote: >> >>> On 2011-07-28 17:18, Luiz Capitulino wrote: On Thu, 28 Jul 2011 16:19:19 +0200 Jan Kiszka wrote: > On

Re: [Qemu-devel] [RFC] Introduce vm_stop_permanent()

2011-07-28 Thread Luiz Capitulino
On Thu, 28 Jul 2011 14:39:23 -0300 Luiz Capitulino wrote: > On Thu, 28 Jul 2011 17:20:41 +0200 > Jan Kiszka wrote: > > > On 2011-07-28 17:18, Luiz Capitulino wrote: > > > On Thu, 28 Jul 2011 16:19:19 +0200 > > > Jan Kiszka wrote: > > > > > >> On 2011-07-28 15:37, Avi Kivity wrote: > > >>> On

Re: [Qemu-devel] Log in to the OS through qemu

2011-07-28 Thread Mulyadi Santosa
On Thu, Jul 28, 2011 at 23:19, bala suru wrote: > Hi, > I have installed OS on VMs (KVM-Qemu) , one version is ttylinux 9.0 and > other is ttylinux 12 . > > I have installed these two with opennebula tool kit .  generally I try  to > login to the OS using SSH , since ttylinux 12 needs to enable th

Re: [Qemu-devel] [RFC] Introduce vm_stop_permanent()

2011-07-28 Thread Luiz Capitulino
On Thu, 28 Jul 2011 17:20:41 +0200 Jan Kiszka wrote: > On 2011-07-28 17:18, Luiz Capitulino wrote: > > On Thu, 28 Jul 2011 16:19:19 +0200 > > Jan Kiszka wrote: > > > >> On 2011-07-28 15:37, Avi Kivity wrote: > >>> On 07/28/2011 04:31 PM, Luiz Capitulino wrote: > On Thu, 28 Jul 2011 10:23:2

Re: [Qemu-devel] [PATCH] add QEMU_LD_PREFIX environment variable

2011-07-28 Thread Alexander Graf
On 28.07.2011, at 18:50, Geert Stappers wrote: > On Thu, Jul 28, 2011 at 01:24:47PM +0200, Johannes Schauer wrote: >> >> @Geert Stappers: >> >> you are patching bsd-user/main.c and darwin-user/main.c as well. I take >> it that you did test your changes on those platforms? does it work there >>

Re: [Qemu-devel] [PATCH] add QEMU_LD_PREFIX environment variable

2011-07-28 Thread Geert Stappers
On Thu, Jul 28, 2011 at 01:24:47PM +0200, Johannes Schauer wrote: > > @Geert Stappers: > > you are patching bsd-user/main.c and darwin-user/main.c as well. I take > it that you did test your changes on those platforms? does it work there > as well? I have no clue of darwin but is it really useful

Re: [Qemu-devel] [RFC][PATCH 0/21] QEMU Object Model

2011-07-28 Thread Paolo Bonzini
On 07/28/2011 05:04 PM, Anthony Liguori wrote: The only way I can see is to teach each device about this interface and then have a common bus. That implies that you have: class GoldfishEnumerator : public Device { GoldfishDevice *slots[N]; FWIW, there's no hardcoded limit in the interfa

[Qemu-devel] Log in to the OS through qemu

2011-07-28 Thread bala suru
Hi, I have installed OS on VMs (KVM-Qemu) , one version is ttylinux 9.0 and other is ttylinux 12 . I have installed these two with opennebula tool kit . generally I try to login to the OS using SSH , since ttylinux 12 needs to enable the ethernet after logged in to the OS, how to login to the O

Re: [Qemu-devel] [PATCH 08/15] qmp: add block_stream command

2011-07-28 Thread Stefan Hajnoczi
On Thu, Jul 28, 2011 at 4:53 PM, Marcelo Tosatti wrote: > On Wed, Jul 27, 2011 at 02:44:48PM +0100, Stefan Hajnoczi wrote: >> For leaf images with copy-on-read semantics, the stream command allows >> the user to populate the image file by copying data from the backing >> file while the guest is ru

Re: [Qemu-devel] [PATCH 08/15] qmp: add block_stream command

2011-07-28 Thread Marcelo Tosatti
On Wed, Jul 27, 2011 at 02:44:48PM +0100, Stefan Hajnoczi wrote: > For leaf images with copy-on-read semantics, the stream command allows > the user to populate the image file by copying data from the backing > file while the guest is running. Once all blocks have been streamed, > the dependency o

Re: [Qemu-devel] RFC: moving fsfreeze support from the userland guest agent to the guest kernel

2011-07-28 Thread Michael Roth
On 07/28/2011 03:54 AM, Jes Sorensen wrote: On 07/27/11 18:40, Andrea Arcangeli wrote: Another thing to note is that snapshotting is not necessarily something that should be completely transparent to the guest. One of the planned future features for the guest agent (mentioned in the snapshot wi

Re: [Qemu-devel] [PATCH] net: fix default MAC assignment for hotplugged NICs

2011-07-28 Thread Marcelo Tosatti
On Thu, Jul 28, 2011 at 04:22:09PM +0100, Peter Maydell wrote: > On 28 July 2011 16:12, Marcelo Tosatti wrote: > > > > The index for assignment of default MAC address is duplicated: > > qemu_macaddr_default_if_unset has its own variable and net_init_nic uses > > the nic table index. > > Isn't thi

Re: [Qemu-devel] mips-linux-user and POSIX IPC

2011-07-28 Thread Riku Voipio
On Tue, Jul 26, 2011 at 08:56:38AM +, Holger Freyther wrote: > For semctl qemu enters through the do_ipc method, it appears > to be that the 'variable' ptr is really a ptr (to the stack) and > needs to be dereferenced. The below snippet seems to fix that > issue for me. > My next problem is w

Re: [Qemu-devel] [PATCH] net: fix default MAC assignment for hotplugged NICs

2011-07-28 Thread Peter Maydell
On 28 July 2011 16:12, Marcelo Tosatti wrote: > > The index for assignment of default MAC address is duplicated: > qemu_macaddr_default_if_unset has its own variable and net_init_nic uses > the nic table index. Isn't this already fixed by commit 6eed18568d ? -- PMM

Re: [Qemu-devel] [RFC] Introduce vm_stop_permanent()

2011-07-28 Thread Jan Kiszka
On 2011-07-28 17:18, Luiz Capitulino wrote: > On Thu, 28 Jul 2011 16:19:19 +0200 > Jan Kiszka wrote: > >> On 2011-07-28 15:37, Avi Kivity wrote: >>> On 07/28/2011 04:31 PM, Luiz Capitulino wrote: On Thu, 28 Jul 2011 10:23:22 +0300 Avi Kivity wrote: > On 07/28/2011 12:44 AM, B

Re: [Qemu-devel] [RFC] Introduce vm_stop_permanent()

2011-07-28 Thread Luiz Capitulino
On Thu, 28 Jul 2011 16:19:19 +0200 Jan Kiszka wrote: > On 2011-07-28 15:37, Avi Kivity wrote: > > On 07/28/2011 04:31 PM, Luiz Capitulino wrote: > >> On Thu, 28 Jul 2011 10:23:22 +0300 > >> Avi Kivity wrote: > >> > >> > On 07/28/2011 12:44 AM, Blue Swirl wrote: > >> > > On Wed, Jul 27, 2011 a

[Qemu-devel] [PATCH] net: fix default MAC assignment for hotplugged NICs

2011-07-28 Thread Marcelo Tosatti
The index for assignment of default MAC address is duplicated: qemu_macaddr_default_if_unset has its own variable and net_init_nic uses the nic table index. This leads to assignment of same MAC addresses to NICs initialized via command line and hotplugged ones. Fix by not assigning default MAC a

Re: [Qemu-devel] RFC: moving fsfreeze support from the userland guest agent to the guest kernel

2011-07-28 Thread Michael Roth
On 07/28/2011 03:03 AM, Andrea Arcangeli wrote: On Thu, Jul 28, 2011 at 11:53:50AM +0900, Fernando Luis Vázquez Cao wrote: On Wed, 2011-07-27 at 17:24 +0200, Andrea Arcangeli wrote: making sure no lib is calling any I/O function to be able to defreeze the filesystems later, making sure the oom

Re: [Qemu-devel] [RFC][PATCH 0/21] QEMU Object Model

2011-07-28 Thread Anthony Liguori
On 07/28/2011 09:41 AM, Paolo Bonzini wrote: On 07/28/2011 04:03 PM, Anthony Liguori wrote: No doubt about that. :) I'd put a lot more hope into Goldfish though. What's unclear to me about the Goldfish enumerator is whether it should be filled out through interaction with hardware devices or v

Re: [Qemu-devel] [PATCH v2 1/1] The codes V2 for QEMU disk I/O limits.

2011-07-28 Thread Marcelo Tosatti
On Thu, Jul 28, 2011 at 12:24:48PM +0800, Zhi Yong Wu wrote: > On Wed, Jul 27, 2011 at 11:49 PM, Marcelo Tosatti wrote: > > On Wed, Jul 27, 2011 at 06:17:15PM +0800, Zhi Yong Wu wrote: > >> >> +        wait_time = 1; > >> >> +    } > >> >> + > >> >> +    wait_time = wait_time + (slice_time - elaps

[Qemu-devel] [PATCH] lm832x: Take DeviceState pointer in lm832x_key_event()

2011-07-28 Thread Peter Maydell
Since lm832x has been qdev'ified, its users will generally have a DeviceState pointer rather than an i2c_slave pointer, so adjust lm832x_key_event's prototype to suit. This allows the n810 (its only user) to actually pass a correct pointer to it rather than NULL. The effect is that we no longer se

Re: [Qemu-devel] [PATCH] fix disabling interrupts in sun4u

2011-07-28 Thread Artyom Tarasenko
On Thu, Jul 28, 2011 at 3:40 PM, wrote: > At Thu, 28 Jul 2011 14:50:57 +0200, > Artyom Tarasenko wrote: >> On Thu, Jul 28, 2011 at 2:03 PM,   wrote: >> > At Thu, 28 Jul 2011 13:51:08 +0200, >> > Artyom Tarasenko wrote: >> >> On Thu, Jul 28, 2011 at 12:31 PM,   wrote: >> >> > Hi, >> >> > >> >> > A

Re: [Qemu-devel] [RFC][PATCH 0/21] QEMU Object Model

2011-07-28 Thread Paolo Bonzini
On 07/28/2011 04:03 PM, Anthony Liguori wrote: No doubt about that. :) I'd put a lot more hope into Goldfish though. What's unclear to me about the Goldfish enumerator is whether it should be filled out through interaction with hardware devices or via some other mechanism. In many ways, it's s

[Qemu-devel] [Bug 524447] Re: virsh save is very slow

2011-07-28 Thread Michael Tokarev
I just wanted to point out that we've this patch in Debian since ages, and it's been included in upstream for a long time too. Added a debbug reference for this as well. ** Bug watch added: Debian Bug tracker #597517 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=597517 ** Also affects: qem

Re: [Qemu-devel] [RFC] Introduce vm_stop_permanent()

2011-07-28 Thread Jan Kiszka
On 2011-07-28 15:37, Avi Kivity wrote: > On 07/28/2011 04:31 PM, Luiz Capitulino wrote: >> On Thu, 28 Jul 2011 10:23:22 +0300 >> Avi Kivity wrote: >> >> > On 07/28/2011 12:44 AM, Blue Swirl wrote: >> > > On Wed, Jul 27, 2011 at 9:42 PM, Luiz >> Capitulino wrote: >> > > > This function sho

Re: [Qemu-devel] Volume key in qcow3?

2011-07-28 Thread Kevin Wolf
Am 28.07.2011 10:05, schrieb Frediano Ziglio: > Hi, > I noted that AES encryption using qcow2 just use the password given > as as key (and also truncating it to 16 bytes == 128 bits). > This is prone to brute force attacks and is not also easy to change > password (you have to decrypt and encrypt

Re: [Qemu-devel] [PATCH] [RFC] qcow2: group refcount updates during cow

2011-07-28 Thread Kevin Wolf
Am 28.07.2011 15:50, schrieb Frediano Ziglio: > Well, I think this is the first real improve patch. > Is more a RFC than a patch. Yes, some lines are terrible! > It collapses refcount decrement during cow. > From a first check time executing 015 test passed from about 600 seconds > to 70. > This at

[Qemu-devel] [Bug 524447] Re: virsh save is very slow

2011-07-28 Thread Jeff Snider
Michael: Yes, that is the correct patch. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/524447 Title: virsh save is very slow Status in libvirt virtualization API: Unknown Status in QEMU: Fix R

Re: [Qemu-devel] [RFC][PATCH 0/21] QEMU Object Model

2011-07-28 Thread Anthony Liguori
On 07/28/2011 08:50 AM, Paolo Bonzini wrote: On 07/28/2011 02:46 PM, Anthony Liguori wrote: There are plenty of PV interfaces implemented by QEMU. Would you say the same of virtio? Virtio was designed to look like real hardware. I would say that trying to fit XenStore into QOM would not be a

Re: [Qemu-devel] [PATCH 00/12] bugfix and qdevify NAND and ONENAND devices

2011-07-28 Thread Peter Maydell
Ping on this one too, since I'm nearly ready with the next chunk of patches (18 patches fixing bugs and adding NAND support to omap_gpmc) and they obviously depend on this set. -- PMM On 15 July 2011 15:58, Peter Maydell wrote: > This patchseries is more goodies from the Meego tree. Specifically

Re: [Qemu-devel] [RFC][PATCH 0/21] QEMU Object Model

2011-07-28 Thread Paolo Bonzini
On 07/28/2011 02:46 PM, Anthony Liguori wrote: There are plenty of PV interfaces implemented by QEMU. Would you say the same of virtio? Virtio was designed to look like real hardware. I would say that trying to fit XenStore into QOM would not be a good exercise. No doubt about that. :) I'd

[Qemu-devel] [PATCH] [RFC] qcow2: group refcount updates during cow

2011-07-28 Thread Frediano Ziglio
Well, I think this is the first real improve patch. Is more a RFC than a patch. Yes, some lines are terrible! It collapses refcount decrement during cow. >From a first check time executing 015 test passed from about 600 seconds to 70. This at least prove that refcount updates counts! Some doubt: 1-

Re: [Qemu-devel] [PATCH] fix disabling interrupts in sun4u

2011-07-28 Thread tsnsaito
At Thu, 28 Jul 2011 14:50:57 +0200, Artyom Tarasenko wrote: > On Thu, Jul 28, 2011 at 2:03 PM, wrote: > > At Thu, 28 Jul 2011 13:51:08 +0200, > > Artyom Tarasenko wrote: > >> On Thu, Jul 28, 2011 at 12:31 PM,   wrote: > >> > Hi, > >> > > >> > At Mon, 25 Jul 2011 19:22:38 +0200, > >> > Artyom Tara

[Qemu-devel] [PATCH 1/4] linux-user: define default cpu model in configure instead of linux-user/main.c

2011-07-28 Thread Laurent Vivier
Signed-off-by: Laurent Vivier --- configure | 15 +++ linux-user/main.c | 34 +- 2 files changed, 16 insertions(+), 33 deletions(-) diff --git a/configure b/configure index fb8819b..c74a5f9 100755 --- a/configure +++ b/configure @@ -3075,6

[Qemu-devel] [PATCH 4/4] linux-user: define new environment variables

2011-07-28 Thread Laurent Vivier
QEMU_GDB=port allows to define gdb server port to wait on. QEMU_DEBUG=options allows to activate log file (like -d options) Signed-off-by: Laurent Vivier --- linux-user/main.c | 11 --- qemu-doc.texi |4 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/linux

[Qemu-devel] [PATCH 3/4] linux-user,m68k: display default cpu

2011-07-28 Thread Laurent Vivier
Signed-off-by: Laurent Vivier --- target-m68k/helper.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/target-m68k/helper.c b/target-m68k/helper.c index a936fe7..f5d33cd 100644 --- a/target-m68k/helper.c +++ b/target-m68k/helper.c @@ -57,6 +57,11 @@ void m68k_cpu_list

[Qemu-devel] [PATCH 2/4] linux-user: specify the cpu model during configure

2011-07-28 Thread Laurent Vivier
This patch allows to set the default cpu model for a given architecture, for instance: configure --target-list=m68k-linux-user --m68k-default-cpu=m68040 Signed-off-by: Laurent Vivier --- configure |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/configure b/conf

[Qemu-devel] [PATCH 0/4] Set of patches for chrooted environment

2011-07-28 Thread Laurent Vivier
This set of patches helps to use qemu-linux-user in a chrooted environment. It mostly allows to define the default cpu model as we can't use '-cpu' argument. The last one defines enviromnent variables to be able to use log file and gdb server ('-d' and '-g' arguments). NOTE: I saw some comment

Re: [Qemu-devel] [RFC] Introduce vm_stop_permanent()

2011-07-28 Thread Avi Kivity
On 07/28/2011 04:31 PM, Luiz Capitulino wrote: On Thu, 28 Jul 2011 10:23:22 +0300 Avi Kivity wrote: > On 07/28/2011 12:44 AM, Blue Swirl wrote: > > On Wed, Jul 27, 2011 at 9:42 PM, Luiz Capitulino wrote: > > > This function should be used when the VM is not supposed to resume > > >

Re: [Qemu-devel] [RFC] Introduce vm_stop_permanent()

2011-07-28 Thread Luiz Capitulino
On Thu, 28 Jul 2011 10:23:22 +0300 Avi Kivity wrote: > On 07/28/2011 12:44 AM, Blue Swirl wrote: > > On Wed, Jul 27, 2011 at 9:42 PM, Luiz Capitulino > > wrote: > > > This function should be used when the VM is not supposed to resume > > > execution (eg. by issuing 'cont' monitor command). >

[Qemu-devel] [PATCH RESEND 3/3] xen: use uint64_t instead of target_ulong in cpu_ioreq_move

2011-07-28 Thread stefano.stabellini
From: Stefano Stabellini cpu_ioreq_move might move 8 bytes at a time so we must make sure that the temporary variable can hold 8 bytes. Signed-off-by: Stefano Stabellini --- xen-all.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/xen-all.c b/xen-all.c index 9eaeac1.

[Qemu-devel] [PATCH RESEND 1/3] Introduce a new 'connected' xendev op called when Connected.

2011-07-28 Thread stefano.stabellini
From: John Haxby Rename the existing xendev 'connect' op to 'initialised' and introduce a new 'connected' op. This new op, if defined, is called when the backend is connected. Note that since there is no state transition this may be called more than once. Signed-off-by: John Haxby Acked-by: S

[Qemu-devel] [PATCH RESEND 2/3] Move the xenfb pointer handler to the connected method

2011-07-28 Thread stefano.stabellini
From: John Haxby Ensure that we read "request-abs-pointer" after the frontend has written it. This means that we will correctly set up an ansolute or relative pointer handler correctly. Signed-off-by: John Haxby Acked-by: Stefano Stabellini --- hw/xenfb.c | 19 ++- 1 files

Re: [Qemu-devel] [V5 Patch 3/4]Qemu: Command "block_set" for dynamic block params change

2011-07-28 Thread Kevin Wolf
Am 28.07.2011 15:10, schrieb Stefan Hajnoczi: > On Thu, Jul 28, 2011 at 11:23 AM, Kevin Wolf wrote: >> Am 27.07.2011 16:51, schrieb Stefan Hajnoczi: >>> I'll think about this some more, there are a couple of solutions like >>> keeping only the file descriptor around, introducing a flush command >>

Re: [Qemu-devel] Block layer roadmap

2011-07-28 Thread Stefan Hajnoczi
On Thu, Jul 28, 2011 at 2:10 PM, Kevin Wolf wrote: > Am 28.07.2011 14:54, schrieb Stefan Hajnoczi: >> On Thu, Jul 28, 2011 at 1:35 PM, Kevin Wolf wrote: >>> Am 28.07.2011 14:09, schrieb Christoph Hellwig: On Wed, Jul 27, 2011 at 01:37:31PM +0100, Stefan Hajnoczi wrote: > Coroutines in th

Re: [Qemu-devel] [V5 Patch 3/4]Qemu: Command "block_set" for dynamic block params change

2011-07-28 Thread Stefan Hajnoczi
On Thu, Jul 28, 2011 at 11:23 AM, Kevin Wolf wrote: > Am 27.07.2011 16:51, schrieb Stefan Hajnoczi: >> 2011/7/27 Michael Tokarev : >>> 27.07.2011 15:30, Supriya Kannery wrote: New command "block_set" added for dynamically changing any of the block device parameters. For now, dynamic sett

Re: [Qemu-devel] Block layer roadmap

2011-07-28 Thread Kevin Wolf
Am 28.07.2011 14:54, schrieb Stefan Hajnoczi: > On Thu, Jul 28, 2011 at 1:35 PM, Kevin Wolf wrote: >> Am 28.07.2011 14:09, schrieb Christoph Hellwig: >>> On Wed, Jul 27, 2011 at 01:37:31PM +0100, Stefan Hajnoczi wrote: Coroutines in the block layer [Kevin] * Programming model to simplif

Re: [Qemu-devel] [PATCH] fix disabling interrupts in sun4u

2011-07-28 Thread Artyom Tarasenko
On Thu, Jul 28, 2011 at 2:10 PM, Tsuneo Saito wrote: > 2011/7/28 : >> >> At Thu, 28 Jul 2011 13:51:08 +0200, >> Artyom Tarasenko wrote: >> > On Thu, Jul 28, 2011 at 12:31 PM,   wrote: >> > > Hi, >> > > >> > > At Mon, 25 Jul 2011 19:22:38 +0200, >> > > Artyom Tarasenko wrote: >> > > >> > >> clear i

Re: [Qemu-devel] Block layer roadmap

2011-07-28 Thread Stefan Hajnoczi
On Thu, Jul 28, 2011 at 1:35 PM, Kevin Wolf wrote: > Am 28.07.2011 14:09, schrieb Christoph Hellwig: >> On Wed, Jul 27, 2011 at 01:37:31PM +0100, Stefan Hajnoczi wrote: >>> Coroutines in the block layer [Kevin] >>>  * Programming model to simplify block drivers without blocking QEMU threads >> >>

Re: [Qemu-devel] Block layer roadmap

2011-07-28 Thread Anthony Liguori
On 07/28/2011 07:09 AM, Christoph Hellwig wrote: On Wed, Jul 27, 2011 at 01:37:31PM +0100, Stefan Hajnoczi wrote: Coroutines in the block layer [Kevin] * Programming model to simplify block drivers without blocking QEMU threads Can anyone explain what the whole point of this is? It really j

Re: [Qemu-devel] [PATCH] fix disabling interrupts in sun4u

2011-07-28 Thread Artyom Tarasenko
On Thu, Jul 28, 2011 at 2:03 PM, wrote: > At Thu, 28 Jul 2011 13:51:08 +0200, > Artyom Tarasenko wrote: >> On Thu, Jul 28, 2011 at 12:31 PM,   wrote: >> > Hi, >> > >> > At Mon, 25 Jul 2011 19:22:38 +0200, >> > Artyom Tarasenko wrote: >> > >> >> clear interrupt request if the interrupt priority <

Re: [Qemu-devel] [PATCH v2] pci: Common overflow prevention

2011-07-28 Thread Isaku Yamahata
On Thu, Jul 28, 2011 at 11:40:21AM +0300, Michael S. Tsirkin wrote: > On Thu, Jul 28, 2011 at 04:23:24PM +0900, Isaku Yamahata wrote: > > This might be a bit late comment... > > > > On Fri, Jul 22, 2011 at 11:05:01AM +0200, Jan Kiszka wrote: > > > diff --git a/hw/pci_host.c b/hw/pci_host.c > > > i

Re: [Qemu-devel] [V5 Patch 3/4]Qemu: Command "block_set" for dynamic block params change

2011-07-28 Thread Anthony Liguori
On 07/28/2011 05:13 AM, Supriya Kannery wrote: On 07/27/2011 09:32 PM, Anthony Liguori wrote: On 07/27/2011 09:31 AM, Stefan Hajnoczi wrote: On Wed, Jul 27, 2011 at 1:58 PM, Anthony Liguori wrote: Index: qemu/hmp-commands.hx === -

Re: [Qemu-devel] [RFC][PATCH 0/21] QEMU Object Model

2011-07-28 Thread Anthony Liguori
On 07/28/2011 02:36 AM, Paolo Bonzini wrote: On 07/27/2011 10:01 PM, Anthony Liguori wrote: That's milkymist, not GoldFish. Oh, Goldfish is fake. It's not real hardware. The enumerator device is not a real device. It's weird because it's imaginary and was designed specifically within QEMU.

Re: [Qemu-devel] [PATCH 1/2] linux aio: support flush operation

2011-07-28 Thread Kevin Wolf
Am 28.07.2011 14:15, schrieb Christoph Hellwig: >> Christoph, on another note: Can we rely on Linux AIO never returning >> short writes except on EOF? Currently we return -EINVAL in this case, so "short reads" I meant, of course. >> I hope it's true or we wouldn't return the correct error code. >

Re: [Qemu-devel] Block layer roadmap

2011-07-28 Thread Kevin Wolf
Am 28.07.2011 14:09, schrieb Christoph Hellwig: > On Wed, Jul 27, 2011 at 01:37:31PM +0100, Stefan Hajnoczi wrote: >> Coroutines in the block layer [Kevin] >> * Programming model to simplify block drivers without blocking QEMU threads > > Can anyone explain what the whole point of this is? It re

Re: [Qemu-devel] [PATCH v2 5/5] virtio-balloon: Unregister savevm section on device unplug

2011-07-28 Thread Michael S. Tsirkin
On Thu, Jul 28, 2011 at 02:21:32PM +0200, Markus Armbruster wrote: > "Michael S. Tsirkin" writes: > > > On Thu, Jul 28, 2011 at 09:45:44AM +0200, Markus Armbruster wrote: > >> I hate the virtio pointer thicket. > > > > The problem is that each device is both a virtio pci > > device and a virtio n

  1   2   >