Re: [Qemu-devel] [PATCH] add "info ioapic" monitor command

2009-12-29 Thread Avi Kivity
On 12/30/2009 04:00 AM, Anthony Liguori wrote: On 12/24/2009 09:02 AM, Gleb Natapov wrote: Knowing ioapic configuration is very useful for the poor soles how need to debug guest occasionally. Can this be implemented in terms of VMState? That's a good idea, but it would mean that we'd need i

Re: [Qemu-devel] Help on "Could not initialize SDL - exiting"

2009-12-29 Thread Mulyadi Santosa
On Sun, Dec 27, 2009 at 5:38 PM, Dejun.Liu wrote: > Hi, > > Im sure this is the right sdl lib. > > i used the openembedded(angstrom) build env to build qemu and libsdl. Hm ok. Just to be sure, how about linking your qemu against your native (x86) libsdl? -- regards, Mulyadi Santosa Freelance L

Re: [Qemu-devel] Help on "Could not initialize SDL - exiting"

2009-12-29 Thread Dejun.Liu
Hi, Im sure this is the right sdl lib. i used the openembedded(angstrom) build env to build qemu and libsdl. Cheers Steven Liu On Wed, 2009-12-30 at 09:32 +0700, Mulyadi Santosa wrote: > Hi... > > On Sat, Dec 26, 2009 at 5:40 PM, Dejun.Liu wrote: > >libSDL-1.2.so.0 > > => > > /home/

Re: [Qemu-devel] Help on "Could not initialize SDL - exiting"

2009-12-29 Thread Mulyadi Santosa
Hi... On Sat, Dec 26, 2009 at 5:40 PM, Dejun.Liu wrote: >        libSDL-1.2.so.0 > => > /home/protocol/study/OE/angstrom-dev/staging/i686-linux/usr/lib/libSDL-1.2.so.0 > (0xb7e9f000) this libsdl, are you sure this is the right library you need to link against? -- regards, Mulyadi Santosa Fr

Re: [Qemu-devel] [PATCH] add "info ioapic" monitor command

2009-12-29 Thread Anthony Liguori
On 12/24/2009 09:02 AM, Gleb Natapov wrote: Knowing ioapic configuration is very useful for the poor soles how need to debug guest occasionally. Can this be implemented in terms of VMState? Regards, Anthony Liguori

Re: [Qemu-devel] Re: Help on "Could not initialize SDL - exiting"

2009-12-29 Thread Dejun.Liu
Hi, below is my DISPLAY info: echo ${DISPLAY} :0.0 and i have already added localhost to xhost with the command: xhost localhost but the error continue the same. r...@dejunliu-desktop:~# echo ${DISPLAY} :0.0 r...@dejunliu-desktop:~# xhost localhost localhost being added to access control list r

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

2009-12-29 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-29 Thread H. Peter Anvin
On 12/29/2009 01:39 PM, H. Peter Anvin wrote: > 8 files changed, 187 insertions(+), 1 deletions(-) Sorry everyone, re-sent an old version by mistake. Correctly updated patch will follow. -hpa

[Qemu-devel] [PATCH] linux-user: adapt uname machine to emulated CPU

2009-12-29 Thread Loïc Minier
Hey there This patch for linux-user adapts the output of the emulated uname() syscall to match the configured CPU. Tested with x86, x86-64 and arm emulation. Thanks, --- Makefile.target|2 +- linux-user/cpu-uname.c | 72 +

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

2009-12-29 Thread H. Peter Anvin
From: 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 stat

Re: [Qemu-devel] [PATCH 11/11] Change the monitor to use the new do_info_qtree.

2009-12-29 Thread Luiz Capitulino
On Tue, 29 Dec 2009 19:25:24 + Nathan Baum wrote: > On Tue, 2009-12-29 at 15:15 -0200, Luiz Capitulino wrote: > > On Sat, 26 Dec 2009 21:19:22 + > > Nathan Baum wrote: > > > > > Signed-off-by: Nathan Baum > > > --- > > > hw/qdev.c |9 - > > > hw/qdev.h |3 ++- > > > mo

Re: [Qemu-devel] [Bug] qemu-system-ppc: "invalid/unsupported opcode" during debug session

2009-12-29 Thread Aurelien Jarno
On Tue, Dec 29, 2009 at 04:09:17PM +0100, Stefan Weil wrote: > Test environment: > > * ppc-softmmu/qemu-system-ppc running on x86_64 host > * emulated ppc is running debian lenny > > > > While debugging on the emulated ppc (each time when > a shared library is loaded after "r" command?), > qemu

Re: [Qemu-devel] [PATCH] add "info ioapic" monitor command

2009-12-29 Thread Luiz Capitulino
On Tue, 29 Dec 2009 20:49:53 +0200 Gleb Natapov wrote: > On Tue, Dec 29, 2009 at 03:39:29PM -0200, Luiz Capitulino wrote: > > On Tue, 29 Dec 2009 18:53:44 +0200 > > Gleb Natapov wrote: > > > > > On Tue, Dec 29, 2009 at 02:37:20PM -0200, Luiz Capitulino wrote: > > > > On Thu, 24 Dec 2009 17:02:4

Re: [Qemu-devel] "Hot" resizing QCow2 image using a simple python script

2009-12-29 Thread Kevin Wolf
Am Dienstag, 29. Dezember 2009 14:07 schrieb Laurent Coustet: > Hi, > > I just wrote a small python script that helps resizing a QCow2 image > without rewriting it. > > I'm sure that's not the correct way to do it, but it seems to work well. > > Beware this script DO NOT SUPPORT SHRINKING !! It

Re: [Qemu-devel] [PATCH] loader: don't call realloc(O) when no symbols are present

2009-12-29 Thread malc
On Tue, 29 Dec 2009, Jamie Lokier wrote: > malc wrote: > > On Mon, 28 Dec 2009, Jamie Lokier wrote: > > > > > Aurelien Jarno wrote: > > > > This fixes the loading of a stripped kernel with zero malloc disabled. > > > > > > *Raises an eyebrow* > > > > > > Even though there's different perspectiv

[Qemu-devel] Re: [PATCH] add "info ioapic" monitor command

2009-12-29 Thread Luiz Capitulino
On Tue, 29 Dec 2009 20:16:10 +0200 "Michael S. Tsirkin" wrote: > On Tue, Dec 29, 2009 at 03:39:29PM -0200, Luiz Capitulino wrote: > > On Tue, 29 Dec 2009 18:53:44 +0200 > > Gleb Natapov wrote: > > > > > On Tue, Dec 29, 2009 at 02:37:20PM -0200, Luiz Capitulino wrote: > > > > On Thu, 24 Dec 2009

[Qemu-devel] Re: commit rules for common git tree

2009-12-29 Thread Aurelien Jarno
On Tue, Dec 29, 2009 at 08:12:57PM +0200, Michael S. Tsirkin wrote: > On Tue, Dec 29, 2009 at 06:40:31PM +0100, Aurelien Jarno wrote: > > On Tue, Dec 29, 2009 at 07:23:28PM +0200, Michael S. Tsirkin wrote: > > > On Sun, Dec 27, 2009 at 05:01:38PM -0600, Anthony Liguori wrote: > > > > Likewise, if y

Re: [Qemu-devel] [PATCH 04/11] qdev: pcibus_dev_info

2009-12-29 Thread Nathan Baum
On Tue, 2009-12-29 at 15:08 -0200, Luiz Capitulino wrote: > > +class = pci_get_word(d->config + PCI_CLASS_DEVICE); > > +desc = pci_class_descriptions; > > +while (desc->desc && class != desc->class) > > +desc++; > > +if (desc->desc) { > > +qdict_put(qobject_to_qdict

Re: [Qemu-devel] [PATCH 10/11] qdev: Add do_info_qbus and friends.

2009-12-29 Thread Nathan Baum
On Tue, 2009-12-29 at 15:13 -0200, Luiz Capitulino wrote: > > +qdict_put(qdict, "gpio-in", qint_from_int(dev->num_gpio_in)); > > +qdict_put(qdict, "gpio-out", qint_from_int(dev->num_gpio_out)); > > Is this a boolean? If so you should use qbool_from_int(). It isn't, but they shouldn't be

Re: [Qemu-devel] [PATCH 11/11] Change the monitor to use the new do_info_qtree.

2009-12-29 Thread Nathan Baum
On Tue, 2009-12-29 at 15:15 -0200, Luiz Capitulino wrote: > On Sat, 26 Dec 2009 21:19:22 + > Nathan Baum wrote: > > > Signed-off-by: Nathan Baum > > --- > > hw/qdev.c |9 - > > hw/qdev.h |3 ++- > > monitor.c |3 ++- > > 3 files changed, 12 insertions(+), 3 deletions(-)

Re: [Qemu-devel] [PATCH] add "info ioapic" monitor command

2009-12-29 Thread Gleb Natapov
On Tue, Dec 29, 2009 at 03:39:29PM -0200, Luiz Capitulino wrote: > On Tue, 29 Dec 2009 18:53:44 +0200 > Gleb Natapov wrote: > > > On Tue, Dec 29, 2009 at 02:37:20PM -0200, Luiz Capitulino wrote: > > > On Thu, 24 Dec 2009 17:02:42 +0200 > > > Gleb Natapov wrote: > > > > > > > + > > > > +static c

[Qemu-devel] Re: [PATCH] add "info ioapic" monitor command

2009-12-29 Thread Michael S. Tsirkin
On Tue, Dec 29, 2009 at 03:39:29PM -0200, Luiz Capitulino wrote: > On Tue, 29 Dec 2009 18:53:44 +0200 > Gleb Natapov wrote: > > > On Tue, Dec 29, 2009 at 02:37:20PM -0200, Luiz Capitulino wrote: > > > On Thu, 24 Dec 2009 17:02:42 +0200 > > > Gleb Natapov wrote: > > > > > > > + > > > > +static c

[Qemu-devel] Re: commit rules for common git tree

2009-12-29 Thread Michael S. Tsirkin
On Tue, Dec 29, 2009 at 06:40:31PM +0100, Aurelien Jarno wrote: > On Tue, Dec 29, 2009 at 07:23:28PM +0200, Michael S. Tsirkin wrote: > > On Sun, Dec 27, 2009 at 05:01:38PM -0600, Anthony Liguori wrote: > > > Likewise, if you see a patch go in that you think would have benefited > > > from being

Re: [Qemu-devel] [Bug] qemu-system-ppc: "invalid/unsupported opcode" during debug session

2009-12-29 Thread Stefan Weil
Blue Swirl schrieb: > On Tue, Dec 29, 2009 at 3:09 PM, Stefan Weil wrote: > >> Test environment: >> >> * ppc-softmmu/qemu-system-ppc running on x86_64 host >> * emulated ppc is running debian lenny >> >> >> >> While debugging on the emulated ppc (each time when >> a shared library is loaded aft

[Qemu-devel] Re: commit rules for common git tree

2009-12-29 Thread Aurelien Jarno
On Tue, Dec 29, 2009 at 07:23:28PM +0200, Michael S. Tsirkin wrote: > On Sun, Dec 27, 2009 at 05:01:38PM -0600, Anthony Liguori wrote: > > Likewise, if you see a patch go in that you think would have benefited > > from being on the list, point it out. > > How *would* I see it? I guess I could wr

Re: [Qemu-devel] [PATCH] add "info ioapic" monitor command

2009-12-29 Thread Luiz Capitulino
On Tue, 29 Dec 2009 18:53:44 +0200 Gleb Natapov wrote: > On Tue, Dec 29, 2009 at 02:37:20PM -0200, Luiz Capitulino wrote: > > On Thu, 24 Dec 2009 17:02:42 +0200 > > Gleb Natapov wrote: > > > > > + > > > +static const char *delivery_mode_string[] = {"fixed", "lowprio", "smi", > > > "res", > > >

[Qemu-devel] Re: commit rules for common git tree

2009-12-29 Thread Michael S. Tsirkin
On Sun, Dec 27, 2009 at 05:01:38PM -0600, Anthony Liguori wrote: > Likewise, if you see a patch go in that you think would have benefited > from being on the list, point it out. How *would* I see it? I guess I could write scripts that correlated git logs (or qemu commit list if it is ever resurr

Re: [Qemu-devel] Re: [PATCH v2] loader: don't call realloc(non_null, 0) when no symbols are present

2009-12-29 Thread Aurelien Jarno
On Tue, Dec 29, 2009 at 04:40:33PM +, Jamie Lokier wrote: > Aurelien Jarno wrote: > > On Tue, Dec 29, 2009 at 05:36:40PM +0200, Michael S. Tsirkin wrote: > > > On Mon, Dec 28, 2009 at 09:20:20PM +0100, Aurelien Jarno wrote: > > > > According to C99, realloc(non_null, 0) != free(non_null), that'

Re: [Qemu-devel] [PATCH 11/11] Change the monitor to use the new do_info_qtree.

2009-12-29 Thread Luiz Capitulino
On Sat, 26 Dec 2009 21:19:22 + Nathan Baum wrote: > Signed-off-by: Nathan Baum > --- > hw/qdev.c |9 - > hw/qdev.h |3 ++- > monitor.c |3 ++- > 3 files changed, 12 insertions(+), 3 deletions(-) > > diff --git a/hw/qdev.c b/hw/qdev.c > index f5d68c6..d9d3778 100644 > --

Re: [Qemu-devel] [PATCH 10/11] qdev: Add do_info_qbus and friends.

2009-12-29 Thread Luiz Capitulino
On Sat, 26 Dec 2009 21:19:21 + Nathan Baum wrote: > Places information about a bus and the devices on into a QObject. > > Signed-off-by: Nathan Baum > --- > hw/qdev.c | 73 > + > 1 files changed, 73 insertions(+), 0 deletions(-

Re: [Qemu-devel] [PATCH 06/11] qdev: sysbus_dev_info

2009-12-29 Thread Luiz Capitulino
On Sat, 26 Dec 2009 21:19:17 + Nathan Baum wrote: > Returns information about the system bus as a QObject. > > Signed-off-by: Nathan Baum > --- > hw/sysbus.c | 18 ++ > 1 files changed, 18 insertions(+), 0 deletions(-) > > diff --git a/hw/sysbus.c b/hw/sysbus.c > index 1

Re: [Qemu-devel] [PATCH 04/11] qdev: pcibus_dev_info

2009-12-29 Thread Luiz Capitulino
On Sat, 26 Dec 2009 21:19:15 + Nathan Baum wrote: > +static QObject *pcibus_dev_info(Monitor *mon, DeviceState *dev) > +{ > +PCIDevice *d = (PCIDevice *)dev; > +const pci_class_desc *desc; > +PCIIORegion *r; > +int i, class; > +QObject *retval; > +QList *regions; > +

Re: [Qemu-devel] [RFC,PATCH 00/11] Half-convert info qtree to QMP.

2009-12-29 Thread Luiz Capitulino
On Sat, 26 Dec 2009 21:19:11 + Nathan Baum wrote: > Hullo. > > This series of patches partially converts info qtree to QMP. Nice, I'm not familiar with qdev so I'll give some minor feedback wrt QObjects. Maybe Markus can review the qdev part.

Re: [Qemu-devel] [PATCH] add "info ioapic" monitor command

2009-12-29 Thread Gleb Natapov
On Tue, Dec 29, 2009 at 02:37:20PM -0200, Luiz Capitulino wrote: > On Thu, 24 Dec 2009 17:02:42 +0200 > Gleb Natapov wrote: > > > + > > +static const char *delivery_mode_string[] = {"fixed", "lowprio", "smi", > > "res", > > + "nmi", "init", "res", > >

Re: [Qemu-devel] [PATCH] loader: don't call realloc(O) when no symbols are present

2009-12-29 Thread Jamie Lokier
malc wrote: > On Mon, 28 Dec 2009, Jamie Lokier wrote: > > > Aurelien Jarno wrote: > > > This fixes the loading of a stripped kernel with zero malloc disabled. > > > > *Raises an eyebrow* > > > > Even though there's different perspectives over whether qemu_malloc(0) > > should be allowed, inheri

Re: [Qemu-devel] Re: [PATCH v2] loader: don't call realloc(non_null, 0) when no symbols are present

2009-12-29 Thread Jamie Lokier
Aurelien Jarno wrote: > On Tue, Dec 29, 2009 at 05:36:40PM +0200, Michael S. Tsirkin wrote: > > On Mon, Dec 28, 2009 at 09:20:20PM +0100, Aurelien Jarno wrote: > > > According to C99, realloc(non_null, 0) != free(non_null), that's why > > > it is forbidden in QEMU. > > > > > > When there are no sy

[Qemu-devel] Re: [PATCH v2] loader: don't call realloc(non_null, 0) when no symbols are present

2009-12-29 Thread Michael S. Tsirkin
On Tue, Dec 29, 2009 at 05:26:50PM +0100, Aurelien Jarno wrote: > On Tue, Dec 29, 2009 at 05:36:40PM +0200, Michael S. Tsirkin wrote: > > On Mon, Dec 28, 2009 at 09:20:20PM +0100, Aurelien Jarno wrote: > > > According to C99, realloc(non_null, 0) != free(non_null), that's why > > > it is forbidden

Re: [Qemu-devel] [PATCH] add "info ioapic" monitor command

2009-12-29 Thread Luiz Capitulino
On Thu, 24 Dec 2009 17:02:42 +0200 Gleb Natapov wrote: > + > +static const char *delivery_mode_string[] = {"fixed", "lowprio", "smi", > "res", > + "nmi", "init", "res", "extint"}; > + > +void do_info_ioapic(Monitor *mon) > +{ > +int i; > + > +i

[Qemu-devel] Re: [PATCH v2] loader: don't call realloc(non_null, 0) when no symbols are present

2009-12-29 Thread Aurelien Jarno
On Tue, Dec 29, 2009 at 05:36:40PM +0200, Michael S. Tsirkin wrote: > On Mon, Dec 28, 2009 at 09:20:20PM +0100, Aurelien Jarno wrote: > > According to C99, realloc(non_null, 0) != free(non_null), that's why > > it is forbidden in QEMU. > > > > When there are no symbols, nsyms equals to 0. Free the

Re: [Qemu-devel] Re: qemu-kvm-0.12 bug?

2009-12-29 Thread Thomas Treutner
On Tuesday 29 December 2009 12:48:39 Luiz Capitulino wrote: > On Tue, 29 Dec 2009 13:10:36 +0200 Avi Kivity wrote: > > Hm, I get "The balloon device has not been activated by the guest" in > > the qemu monitor. > > Is the "-balloon virtio" parameter passed on the command-line? # grep balloon /us

[Qemu-devel] Re: [PATCH] Allow usage of qemu_realloc(ptr, 0)

2009-12-29 Thread Michael S. Tsirkin
On Tue, Dec 29, 2009 at 05:38:17PM +0200, Michael S. Tsirkin wrote: > On Mon, Dec 28, 2009 at 04:49:00PM +0100, Aurelien Jarno wrote: > > realloc(ptr, 0) is always allowed by the standard. The return value is > > either NULL or a pointer that can be freed with free(). > > > > Allow usage of qemu_r

Re: [Qemu-devel] "Hot" resizing QCow2 image using a simple python script

2009-12-29 Thread Laurent Coustet
Le 29/12/2009 16:32, Laurent Coustet a écrit : Le 29/12/2009 14:07, Laurent Coustet a écrit : use at your own risks ! Don't use it, I just forgot to move all datas if l1 needs more blocks..

[Qemu-devel] Re: [PATCH] Allow usage of qemu_realloc(ptr, 0)

2009-12-29 Thread Michael S. Tsirkin
On Mon, Dec 28, 2009 at 04:49:00PM +0100, Aurelien Jarno wrote: > realloc(ptr, 0) is always allowed by the standard. The return value is > either NULL or a pointer that can be freed with free(). > > Allow usage of qemu_realloc(ptr, 0), and return NULL in that case, as > free(NULL) should always be

[Qemu-devel] Re: [PATCH v2] loader: don't call realloc(non_null, 0) when no symbols are present

2009-12-29 Thread Michael S. Tsirkin
On Mon, Dec 28, 2009 at 09:20:20PM +0100, Aurelien Jarno wrote: > According to C99, realloc(non_null, 0) != free(non_null), that's why > it is forbidden in QEMU. > > When there are no symbols, nsyms equals to 0. Free the syms structure > and set it to NULL instead of reallocating it with a size of

Re: [Qemu-devel] "Hot" resizing QCow2 image using a simple python script

2009-12-29 Thread Laurent Coustet
Le 29/12/2009 14:07, Laurent Coustet a écrit : Hi, I just wrote a small python script that helps resizing a QCow2 image without rewriting it. I'm sure that's not the correct way to do it, but it seems to work well. Beware this script DO NOT SUPPORT SHRINKING !! It do not check any error case,

[Qemu-devel] [Bug] qemu-system-ppc: "Bad clock read" when started with -icount auto

2009-12-29 Thread Stefan Weil
Hi, When qemu-system-ppc is started with argument "-icount auto" (needed for running qemu in the emulated system), it will print lots of "Bad clock read" on stderr. env->can_do_io toggles between 0 and 1. A similar problem was reported some time ago: http://lists.nongnu.org/archive/html/qemu-dev

Re: [Qemu-devel] [Bug] qemu-system-ppc: "invalid/unsupported opcode" during debug session

2009-12-29 Thread Blue Swirl
On Tue, Dec 29, 2009 at 3:09 PM, Stefan Weil wrote: > Test environment: > > * ppc-softmmu/qemu-system-ppc running on x86_64 host > * emulated ppc is running debian lenny > > > > While debugging on the emulated ppc (each time when > a shared library is loaded after "r" command?), > qemu-system-ppc

[Qemu-devel] [Bug] qemu-system-ppc: "invalid/unsupported opcode" during debug session

2009-12-29 Thread Stefan Weil
Test environment: * ppc-softmmu/qemu-system-ppc running on x86_64 host * emulated ppc is running debian lenny While debugging on the emulated ppc (each time when a shared library is loaded after "r" command?), qemu-system-ppc prints this error message: invalid/unsupported opcode: 00 - 00 - 00

Re: [Qemu-devel] Re: MBR has broken by the installer on qemu-system-ppc

2009-12-29 Thread Alexander Graf
Am 28.12.2009 um 08:54 schrieb MICHIMURA Tadao >: Hi, Thank you for your response. (2009/12/26 4:51), Andreas Färber wrote: ..snip /usr/local/bin/qemu-system-ppc -m 1024 -hdc fc6-ppc-1.img -boot c Have you tried -hda fc6-ppc-1.img -boot c? -hdc (secondary master) is > probably less tested

Re: [Qemu-devel] [PATCH RFC] Advertise IDE physical block size as 4K

2009-12-29 Thread Avi Kivity
On 12/29/2009 03:39 PM, Luca Tettamanti wrote: Ugh, I hope you're wrong ;-) AFAICS remapping will lead only to headaches... Linux does not have any problem with aligned partitions. And in fact, that was the motivation for this patch, as parted will align based on the physical block size.

Re: [Qemu-devel] [PATCH RFC] Advertise IDE physical block size as 4K

2009-12-29 Thread Luca Tettamanti
On Tue, Dec 29, 2009 at 2:21 PM, Jamie Lokier wrote: > Avi Kivity wrote: >> Guests use this number as a hint for alignment and I/O request sizes. > > It's not just a hint.  It is also the "radius of corruption on failed > write" - important for journalling filesystems and databases. > >> Given >>

Re: [Qemu-devel] [PATCH] Reinstate cpuid vendor override when kvm is enabled

2009-12-29 Thread Jamie Lokier
Avi Kivity wrote: > Due to upstream qemu changes we no longer expose the host cpu vendor id > to the guest. This leads to failures when the syscall/sysenter instructions > are used in compatibility mode. > > Change the default to override when kvm is enabled. This is a good change, although it a

Re: [Qemu-devel] [PATCH RFC] Advertise IDE physical block size as 4K

2009-12-29 Thread Jamie Lokier
Avi Kivity wrote: > Guests use this number as a hint for alignment and I/O request sizes. It's not just a hint. It is also the "radius of corruption on failed write" - important for journalling filesystems and databases. > Given > that modern disks have 4K block sizes, Do they, yet? > and cach

[Qemu-devel] "Hot" resizing QCow2 image using a simple python script

2009-12-29 Thread Laurent Coustet
Hi, I just wrote a small python script that helps resizing a QCow2 image without rewriting it. I'm sure that's not the correct way to do it, but it seems to work well. Beware this script DO NOT SUPPORT SHRINKING !! It do not check any error case, so; use at your own risks ! -- Laurent Cou

Re: [Qemu-devel] Re: qemu-kvm-0.12 bug?

2009-12-29 Thread Luiz Capitulino
On Tue, 29 Dec 2009 13:08:26 +0100 Thomas Treutner wrote: > On Tuesday 29 December 2009 12:48:39 Luiz Capitulino wrote: > > On Tue, 29 Dec 2009 13:10:36 +0200 Avi Kivity wrote: > > > Hm, I get "The balloon device has not been activated by the guest" in > > > the qemu monitor. > > > > Is the "-b

Re: [Qemu-devel] [STABLE 0.12] QMP: Drop wrong assert()

2009-12-29 Thread Luiz Capitulino
On Tue, 22 Dec 2009 08:50:30 +0100 Markus Armbruster wrote: > Luiz Capitulino writes: > > > Some commands return a QList of QDicts, which is valid, > > but will trig the assert(). > > > > Just drop it. > > > > Reported-by: Nathan Baum > > Signed-off-by: Luiz Capitulino > > --- > > monitor.c

Re: [Qemu-devel] Re: qemu-kvm-0.12 bug?

2009-12-29 Thread Avi Kivity
On 12/29/2009 01:48 PM, Luiz Capitulino wrote: Hm, I get "The balloon device has not been activated by the guest" in the qemu monitor. Is the "-balloon virtio" parameter passed on the command-line? With this parameter, everything works. -- error compiling committee.c: too many a

Re: [Qemu-devel] Re: [WINDOWS] QEMU doesn't work, because absolute path is used instead of environmental variables

2009-12-29 Thread Roy Tam
2009/12/29 Paolo Bonzini : > On 12/29/2009 08:50 AM, Chip Panarchy wrote: >> >> Hi >> >> Unfortunately QEMU doesn't work for me because it uses absolute paths >> instead of environmental variables. >> >> Proof; >> http://i46.tinypic.com/11tbz1l.jpg > > Besides the absolute path, there is also a pro

Re: [Qemu-devel] Re: qemu-kvm-0.12 bug?

2009-12-29 Thread Luiz Capitulino
On Tue, 29 Dec 2009 13:10:36 +0200 Avi Kivity wrote: > On 12/29/2009 12:54 PM, Thomas Treutner wrote: > > On Tuesday 29 December 2009 11:36:03 Avi Kivity wrote: > > > >> On 12/29/2009 12:33 PM, Thomas Treutner wrote: > >> > >>> ...and made the next bug visible - I can't set the assigned

[Qemu-devel] Re: [WINDOWS] QEMU doesn't work, because absolute path is used instead of environmental variables

2009-12-29 Thread Paolo Bonzini
On 12/29/2009 08:50 AM, Chip Panarchy wrote: Hi Unfortunately QEMU doesn't work for me because it uses absolute paths instead of environmental variables. Proof; http://i46.tinypic.com/11tbz1l.jpg Besides the absolute path, there is also a problem in that it points to "program files\Qemu" rat

[Qemu-devel] Re: qemu-kvm-0.12 bug?

2009-12-29 Thread Avi Kivity
On 12/29/2009 12:54 PM, Thomas Treutner wrote: On Tuesday 29 December 2009 11:36:03 Avi Kivity wrote: On 12/29/2009 12:33 PM, Thomas Treutner wrote: ...and made the next bug visible - I can't set the assigned memory by $ virsh setmem domain kbyte With -0.11, it works flawlessly. I t

[Qemu-devel] Re: Help on "Could not initialize SDL - exiting"

2009-12-29 Thread Michael S. Tsirkin
No, I mean DISPLAY. On Sat, Dec 26, 2009 at 02:44:05PM -0300, Dejun.Liu wrote: > Hi, > > do u mean: > export SDL_VIDEODRIVER=x11 > ? > i hava set sdl video driver to x11. > > Steven Liu > > On Tue, 2009-12-29 at 12:04 +0200, Michael S. Tsirkin wrote: > > Most likely DISPLAY not set. > > > > O

[Qemu-devel] Re: Help on "Could not initialize SDL - exiting"

2009-12-29 Thread Dejun.Liu
Hi, do u mean: export SDL_VIDEODRIVER=x11 ? i hava set sdl video driver to x11. Steven Liu On Tue, 2009-12-29 at 12:04 +0200, Michael S. Tsirkin wrote: > Most likely DISPLAY not set. > > On Sat, Dec 26, 2009 at 07:40:01AM -0300, Dejun.Liu wrote: > > Hi, > > > > Im a newbie to qemu use. > > s

[Qemu-devel] [PATCH RFC] Advertise IDE physical block size as 4K

2009-12-29 Thread Avi Kivity
Guests use this number as a hint for alignment and I/O request sizes. Given that modern disks have 4K block sizes, and cached file-backed images also have 4K block sizes, this hint can improve guest performance. We probably need to make this configurable depending on machine type. It should be t

[Qemu-devel] Re: Help on "Could not initialize SDL - exiting"

2009-12-29 Thread Michael S. Tsirkin
Most likely DISPLAY not set. On Sat, Dec 26, 2009 at 07:40:01AM -0300, Dejun.Liu wrote: > Hi, > > Im a newbie to qemu use. > so i got a lot error!.. > > I build qemu from source with the version 0.10.3, > > But when i start qemu with the command below, i got the message > Could not in

Re: [Qemu-devel] [WINDOWS] QEMU doesn't work, because absolute path is used instead of environmental variables

2009-12-29 Thread Stefan Weil
Chip Panarchy schrieb: > Hi > > Unfortunately QEMU doesn't work for me because it uses absolute paths > instead of environmental variables. > > Proof; > http://i46.tinypic.com/11tbz1l.jpg > > The environmental variable which should be used is %ProgramFiles% > > Please correct this programmatically.