[Qemu-devel] [PATCH v3 3/3] balloon: Don't try fetching info if machine is stopped

2010-08-26 Thread Amit Shah
If the machine is stopped and 'info balloon' is invoked, instead of querying the guest and waiting for a timeout, just display the most recent stats available in this case and log an error report. See https://bugzilla.redhat.com/show_bug.cgi?id=623903 Reported-by: Signed-off-by: Amit Shah ---

[Qemu-devel] [PATCH v3 2/3] qerror: Add a new MACHINE_STOPPED error message

2010-08-26 Thread Amit Shah
This error message denotes some command was not successful in completing as the guest was unresponsive. Use it in the virtio-balloon code when showing older, cached data. Signed-off-by: Amit Shah --- hw/virtio-balloon.c |1 + qerror.c|4 qerror.h|3 +++

[Qemu-devel] [PATCH v3 1/3] balloon: Don't try fetching info if guest is unresponsive

2010-08-26 Thread Amit Shah
If the guest is unresponsive and 'info balloon' is invoked, the monitor process just hangs waiting for info from the guest. Return the most recent balloon data in that case. A new timer is added, which on expiry, just presents the old data to the monitor callback functions. See https://bugzilla.r

[Qemu-devel] [PATCH v3 0/3] virtio-balloon: Don't wait indefinitely for guest response

2010-08-26 Thread Amit Shah
Since I didn't get negative reactions to the patch I posted yesterday, here's the complete series. It adds a qerror message that mentions the machine is stopped or the guest is slow to respond, so the stats should be assumed to be old. The error report is sent out before the stats, I don't think w

Re: [Qemu-devel] [PATCH] qdev: Reset hotplugged devices

2010-08-26 Thread Isaku Yamahata
I added CC for those who might be interested in this discussion. On Thu, Aug 26, 2010 at 08:02:38AM -0500, Anthony Liguori wrote: > On 08/26/2010 03:38 AM, Isaku Yamahata wrote: >> >>> I think that starts by understanding exactly what's guaranteed and >>> understanding what the use cases are for i

[Qemu-devel] Is there any mips bios support plan in qemu recently?

2010-08-26 Thread S.W Arron
Hi, all I want to setup a mips development environment for Freebsd. The gxemul is so slow and no networking support. I want to transfer to qemu, unfortunately qemu can't load the freebsd kernel, and there is no mips bios bin file. Is there any plan to support the mips bios? It is appreciated if so

[Qemu-devel] Re: qemu-kvm faster than qemu?

2010-08-26 Thread walt
On 08/25/2010 04:28 PM, Anthony Liguori wrote: On 08/25/2010 06:09 PM, walt wrote: On 08/25/2010 12:48 PM, Anthony Liguori wrote: On 08/25/2010 02:37 PM, walt wrote: I find that qemu-kvm boots to the Win7 login prompt in 25 seconds, while qemu with kvm enabled takes about 45 seconds. Also

Re: [Qemu-devel] [PATCH 1/3] Add TPM 1.2 host device passthrough interface

2010-08-26 Thread Anthony Liguori
On 08/26/2010 04:44 PM, malc wrote: and lastly there is no errx[1] [..snip..] [1] err(3): CONFORMING TO These functions are non-standard BSD extensions. err() and errx() are already used somewhere. But these should be converted to error_report etc., like other printf b

Re: [Qemu-devel] [PATCH 1/3] Add TPM 1.2 host device passthrough interface

2010-08-26 Thread malc
On Thu, 26 Aug 2010, Blue Swirl wrote: > On Wed, Aug 25, 2010 at 8:46 PM, malc wrote: > > On Wed, 25 Aug 2010, Blue Swirl wrote: > > > >> On Wed, Aug 25, 2010 at 4:33 PM, Andreas Niederl > >> wrote: > >> > This implementation is based on the TPM 1.2 interface for virtualized TPM > >> > devices f

Re: [Qemu-devel] [PATCH v3 0/5] CODING_STYLE amendments

2010-08-26 Thread Anthony Liguori
On 08/26/2010 01:37 PM, Blue Swirl wrote: 1/5 and 2/5 updated according to review. I removed the contentious bool paragraph from 2/5, it can be added later. Blue Swirl (5): HACKING: add preprocessor rules HACKING: add C type rules HACKING: add memory management rules HACKING: add st

Re: [Qemu-devel] [PATCH 2/5] HACKING: add C type rules

2010-08-26 Thread malc
On Thu, 26 Aug 2010, Blue Swirl wrote: > Add C type rules, adapted from libvirt HACKING. Also include > a description of special QEMU scalar types. > > Move typedef rule from CODING_STYLE rule 3 to HACKING rule 6 > where it belongs. > > Signed-off-by: Blue Swirl > --- > CODING_STYLE |3 --

Re: [Qemu-devel] vhost_net.c broken by --kerneldir

2010-08-26 Thread Anthony Liguori
On 08/26/2010 11:41 AM, Hollis Blanchard wrote: On 08/26/2010 08:48 AM, Anthony Liguori wrote: On 08/26/2010 10:21 AM, Gleb Natapov wrote: You forgot about developers. Developer may want to use latest kvm kernel headers to compile code that he added to qemu to use new kernel feature. The Rig

[Qemu-devel] Virtualization project idea

2010-08-26 Thread Dhananjay Goel
Hi there! First I'd like to say that QEMU plaform is really cool and awesome. I'm an engineering student and is searching for a feasible project in virtualization. I'd like to know if its possible to share USB devices (flash drive, hard disk, mouse, keyboards etc) across guests and host (VMs). Al

[Qemu-devel] [PATCH 4/5] HACKING: add string management rules

2010-08-26 Thread Blue Swirl
Add string management rules, somewhat like libvirt HACKING. Signed-off-by: Blue Swirl --- HACKING | 24 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/HACKING b/HACKING index 554009e..a3d714f 100644 --- a/HACKING +++ b/HACKING @@ -83,3 +83,27 @@ qemu_v

[Qemu-devel] [PATCH 3/5] HACKING: add memory management rules

2010-08-26 Thread Blue Swirl
Add memory management rules, somewhat like libvirt HACKING. Signed-off-by: Blue Swirl --- HACKING | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/HACKING b/HACKING index 19fc874..554009e 100644 --- a/HACKING +++ b/HACKING @@ -72,3 +72,14 @@ Typedefs are used t

[Qemu-devel] [PATCH 2/5] HACKING: add C type rules

2010-08-26 Thread Blue Swirl
Add C type rules, adapted from libvirt HACKING. Also include a description of special QEMU scalar types. Move typedef rule from CODING_STYLE rule 3 to HACKING rule 6 where it belongs. Signed-off-by: Blue Swirl --- CODING_STYLE |3 -- HACKING | 68 +

[Qemu-devel] [PATCH 5/5] HACKING: add rules for printf-like functions

2010-08-26 Thread Blue Swirl
Add rules for printf-like functions, based on libvirt HACKING. Signed-off-by: Blue Swirl --- HACKING | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/HACKING b/HACKING index a3d714f..5beb765 100644 --- a/HACKING +++ b/HACKING @@ -107,3 +107,16 @@ so instead o

[Qemu-devel] [PATCH 1/5] HACKING: add preprocessor rules

2010-08-26 Thread Blue Swirl
Add a new file, HACKING, in order to collect recurring issues with submitted patches. Start with preprocessor rules, adapted from libvirt HACKING. Signed-off-by: Blue Swirl --- HACKING |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) create mode 100644 HACKING diff --git a/HACK

[Qemu-devel] [PATCH v3 0/5] CODING_STYLE amendments

2010-08-26 Thread Blue Swirl
1/5 and 2/5 updated according to review. I removed the contentious bool paragraph from 2/5, it can be added later. Blue Swirl (5): HACKING: add preprocessor rules HACKING: add C type rules HACKING: add memory management rules HACKING: add string management rules HACKING: add rules for p

Re: [Qemu-devel] Template for developing a Qe mu device with PCIe?and MSI-X

2010-08-26 Thread Adnan Khaleel
Hi there. I should have sent a lot of these with my note yesterday but I was in a hurry to get the files to you first. See my comments below and thanks again. AK pcie_msix_write_config() should call pci_default_write_config() unless you did it so intentionally.I've made this change. Than

qemu-devel@nongnu.org

2010-08-26 Thread Blue Swirl
On Thu, Aug 26, 2010 at 1:23 PM, Edgar E. Iglesias wrote: > On Sat, Aug 21, 2010 at 09:42:51AM +, Blue Swirl wrote: >> Combining bitwise AND and logical NOT is suspicious. >> >> Fixed by this Coccinelle script: >> // From http://article.gmane.org/gmane.linux.kernel/646367 >> @@ expression E1,E

Re: [Qemu-devel] [PULL 0/6] PPC updates

2010-08-26 Thread Blue Swirl
Thanks, pulled. When you update OpenBIOS images, please remember to update the README also. On Thu, Aug 26, 2010 at 4:29 PM, Alexander Graf wrote: > The following changes since commit 2446333cd5b5c985f6517dee7004e542ecacd21c: >  Blue Swirl (1): >        Rearrange block headers > > are available

Re: [Qemu-devel] [PATCH] qdev: Reset hotplugged devices

2010-08-26 Thread Blue Swirl
On Thu, Aug 26, 2010 at 2:29 PM, Avi Kivity wrote: >  On 08/26/2010 04:25 PM, Anthony Liguori wrote: >> >> On 08/26/2010 08:15 AM, Avi Kivity wrote: >>> >>>  On 08/25/2010 03:55 PM, Anthony Liguori wrote: > Maybe we can merge the patches. > As for your patch, I have some comment.

Re: [Qemu-devel] [PATCH 1/3] Add TPM 1.2 host device passthrough interface

2010-08-26 Thread Blue Swirl
On Wed, Aug 25, 2010 at 8:46 PM, malc wrote: > On Wed, 25 Aug 2010, Blue Swirl wrote: > >> On Wed, Aug 25, 2010 at 4:33 PM, Andreas Niederl >> wrote: >> > This implementation is based on the TPM 1.2 interface for virtualized TPM >> > devices from the Xen-4.0.0 ioemu-qemu-xen fork. >> > >> > A sep

[Qemu-devel] Re: virtio-9p error

2010-08-26 Thread Venkateswararao Jujjuri (JV)
Bruno Cesar Ribas wrote: > Hi, > > Every time I try to rsync something to my 9p fs mounted I get the following > message on guest kernel: > > 8< > [ 45.866789] 9pnet_virtio virtio2: requests:id 0 is not a head! > 8< > > I'm "sending" the FS with the foll

Re: [Qemu-devel] vhost_net.c broken by --kerneldir

2010-08-26 Thread Hollis Blanchard
On 08/26/2010 08:48 AM, Anthony Liguori wrote: On 08/26/2010 10:21 AM, Gleb Natapov wrote: You forgot about developers. Developer may want to use latest kvm kernel headers to compile code that he added to qemu to use new kernel feature. The Right Way to do this is a make headers_install to a t

[Qemu-devel] [PATCH 3/6] Fix "make install" with a cross toolchain

2010-08-26 Thread Alexander Graf
From: Hollis Blanchard We must be able to use a non-native strip executable, but not all versions of 'install' support the --strip-program option (e.g. OpenBSD). Accordingly, we can't use 'install -s', and we must run strip separately. Signed-off-by: Hollis Blanchard Cc: blauwir...@gmail.com --

[Qemu-devel] [PATCH 1/6] PPC: Add PV hypercall transport through fw_cfg

2010-08-26 Thread Alexander Graf
On KVM for PPC we need to tell the guest which instructions to use when doing a hypercall. The clean way to do this is to go through an ioctl from userspace and passing it on to the guest using the device tree. So let's do the qemu part here: read out the hypercall and pass it on to the guest's fw

[Qemu-devel] [PATCH 6/6] ppc4xx: load Bamboo kernel, initrd, and fdt at fixed addresses

2010-08-26 Thread Alexander Graf
From: Hollis Blanchard We can't use the return value of load_uimage() for the kernel because it can't account for BSS size, and the PowerPC kernel does not relocate blobs before zeroing BSS. Instead, we now load at the fixed addresses chosen by u-boot (the normal firmware for the board). Signed

[Qemu-devel] [PATCH 2/6] PPC: Update openbios binary to r859

2010-08-26 Thread Alexander Graf
This updates the openBIOS binary to r589, adding support for PPC PV feature pass-through in KVM. Signed-off-by: Alexander Graf --- pc-bios/openbios-ppc | Bin 320324 -> 320328 bytes 1 files changed, 0 insertions(+), 0 deletions(-) [...] leaving out all the binary crap - do a pull if you need i

[Qemu-devel] [PATCH 4/6] ppc4xx: correct SDRAM controller warning message condition

2010-08-26 Thread Alexander Graf
From: Hollis Blanchard The message "Truncating memory to %d MiB to fit SDRAM controller limits" should be displayed only when a user chooses an amount of RAM which can't be represented by the PPC 4xx SDRAM controller (e.g. 129MB, which would only be valid if the controller supports a bank size of

[Qemu-devel] [PULL 0/6] PPC updates

2010-08-26 Thread Alexander Graf
The following changes since commit 2446333cd5b5c985f6517dee7004e542ecacd21c: Blue Swirl (1): Rearrange block headers are available in the git repository at: git://repo.or.cz/qemu/agraf.git ppc-next Alexander Graf (2): PPC: Add PV hypercall transport through fw_cfg PPC: Update ope

[Qemu-devel] [PATCH 5/6] ppc4xx: don't unregister RAM at reset

2010-08-26 Thread Alexander Graf
From: Hollis Blanchard The PowerPC 4xx SDRAM controller emulation unregisters RAM in its reset callback. However, qemu_system_reset() is now called at initialization time, so all RAM is unregistered before starting the guest (!). Signed-off-by: Hollis Blanchard --- hw/ppc4xx_devs.c |1 - 1

Re: [Qemu-devel] vhost_net.c broken by --kerneldir

2010-08-26 Thread Arnd Bergmann
On Thursday 26 August 2010, Gleb Natapov wrote: > You forgot about developers. Developer may want to use latest kvm kernel > headers to compile code that he added to qemu to use new kernel feature. In that case, you already need to install the kernel in order to test it, so you might as well insta

Re: [Qemu-devel] vhost_net.c broken by --kerneldir

2010-08-26 Thread Anthony Liguori
On 08/26/2010 10:21 AM, Gleb Natapov wrote: You forgot about developers. Developer may want to use latest kvm kernel headers to compile code that he added to qemu to use new kernel feature. The Right Way to do this is a make headers_install to a temporary directory and then -I include that

Re: [Qemu-devel] vhost_net.c broken by --kerneldir

2010-08-26 Thread Gleb Natapov
On Thu, Aug 26, 2010 at 05:15:35PM +0200, Arnd Bergmann wrote: > On Wednesday 25 August 2010, Hollis Blanchard wrote: > > > We only recently fixed the kernel to have this warning in types.h, which > > > triggers more often than kernel.h, where it used to be before. In 2.6.35 > > > and before, you c

Re: [Qemu-devel] vhost_net.c broken by --kerneldir

2010-08-26 Thread Arnd Bergmann
On Wednesday 25 August 2010, Hollis Blanchard wrote: > > We only recently fixed the kernel to have this warning in types.h, which > > triggers more often than kernel.h, where it used to be before. In 2.6.35 > > and before, you consequently would not have noticed the problem. > > > > Thanks Arn

Re: [Qemu-devel] [PATCH] qdev: Reset hotplugged devices

2010-08-26 Thread Avi Kivity
On 08/26/2010 04:25 PM, Anthony Liguori wrote: On 08/26/2010 08:15 AM, Avi Kivity wrote: On 08/25/2010 03:55 PM, Anthony Liguori wrote: Maybe we can merge the patches. As for your patch, I have some comment. - bus itself may want its own handler. At lease pci bus needs it. And propagatin

Re: [Qemu-devel] [PATCH][v3] Introduce NBD named exports.

2010-08-26 Thread Kevin Wolf
Am 25.08.2010 22:48, schrieb Laurent Vivier: > This patch allows to connect Qemu using NBD protocol to an nbd-server > using named exports. > > For instance, if on the host "isoserver", in /etc/nbd-server/config, you have: > > [generic] > [debian-500-ppc-netinst] > exportname = /ISO/debia

qemu-devel@nongnu.org

2010-08-26 Thread Edgar E. Iglesias
On Sat, Aug 21, 2010 at 09:42:51AM +, Blue Swirl wrote: > Combining bitwise AND and logical NOT is suspicious. > > Fixed by this Coccinelle script: > // From http://article.gmane.org/gmane.linux.kernel/646367 > @@ expression E1,E2; @@ > ( > !E1 & !E2 > | > - !E1 & E2 > + !(E1 & E2) > ) > >

Re: [Qemu-devel] [PATCH V2] balloon: Don't try fetching info if machine is stopped

2010-08-26 Thread Paolo Bonzini
On 08/26/2010 02:57 PM, Luiz Capitulino wrote: I really don't know what to do 0.13. Probably the hard-coded timer is the best solution we have, but I'm wondering if it's going to cause problems in the near future, when we get proper asynchronous command support. Just make it a different command

Re: [Qemu-devel] [PATCH] qdev: Reset hotplugged devices

2010-08-26 Thread Anthony Liguori
On 08/26/2010 08:15 AM, Avi Kivity wrote: On 08/25/2010 03:55 PM, Anthony Liguori wrote: Maybe we can merge the patches. As for your patch, I have some comment. - bus itself may want its own handler. At lease pci bus needs it. And propagating reset signal to children is up to the bus cont

Re: [Qemu-devel] [PATCH] qdev: Reset hotplugged devices

2010-08-26 Thread Avi Kivity
On 08/25/2010 03:55 PM, Anthony Liguori wrote: Maybe we can merge the patches. As for your patch, I have some comment. - bus itself may want its own handler. At lease pci bus needs it. And propagating reset signal to children is up to the bus controller. I disagree. Reset should be equiv

[Qemu-devel] Re: [PATCH 0/2] QMP: update 'query-version'

2010-08-26 Thread Luiz Capitulino
On Mon, 9 Aug 2010 14:00:54 -0300 Miguel Di Ciurcio Filho wrote: > This series changes how QMP exports the version of QEMU to clients. > > Current behavior: > {"QMP": {"version": {"qemu": "0.13.50", "package": ""}, "capabilities": []}} > > New behavior: > {"QMP": {"version": {"qemu": {"micro":

Re: [Qemu-devel] [PATCH V2] balloon: Don't try fetching info if machine is stopped

2010-08-26 Thread Anthony Liguori
On 08/26/2010 03:14 AM, Daniel P. Berrange wrote: On Thu, Aug 26, 2010 at 10:05:44AM +0200, Paolo Bonzini wrote: On 08/26/2010 08:05 AM, Amit Shah wrote: This is what I have currently. It would need some timer handling in the save/load case as well, right? When loading you wo

Re: [Qemu-devel] [PATCH] qdev: Reset hotplugged devices

2010-08-26 Thread Anthony Liguori
On 08/26/2010 03:38 AM, Isaku Yamahata wrote: QEMU_RESET_COLD BTW, just from a implementation perspective, I'd rather have multiple reset callbacks in qdev instead of having a single callback with a type flag. A type flag implies that every callback has to handle all cases wher

Re: [Qemu-devel] [PATCH] qdev: Reset hotplugged devices

2010-08-26 Thread Anthony Liguori
On 08/26/2010 03:38 AM, Isaku Yamahata wrote: I think that starts by understanding exactly what's guaranteed and understanding what the use cases are for it. Fair enough. How about the followings? Thanks for enumerating. This is just a starting point. I borrowed terminology pci/p

Re: [Qemu-devel] [PATCH V2] balloon: Don't try fetching info if machine is stopped

2010-08-26 Thread Luiz Capitulino
On Thu, 26 Aug 2010 09:28:42 +0100 "Daniel P. Berrange" wrote: > On Thu, Aug 26, 2010 at 01:47:50PM +0530, Amit Shah wrote: > > On (Thu) Aug 26 2010 [10:05:44], Paolo Bonzini wrote: > > > On 08/26/2010 08:05 AM, Amit Shah wrote: > > > >This is what I have currently. It would need some timer handl

Re: [Qemu-devel] Re: qemu-kvm faster than qemu?

2010-08-26 Thread Gleb Natapov
On Thu, Aug 26, 2010 at 07:54:26AM -0500, Anthony Liguori wrote: > On 08/26/2010 02:59 AM, Gleb Natapov wrote: > >On Thu, Aug 26, 2010 at 09:53:27AM +0200, Gerd Hoffmann wrote: > >> Hi, > >> > >>>Also try qemu-kvm with -no-kvm-irqchip. I can't believe an in-kernel > >>>lapic would make this much

Re: [Qemu-devel] [PATCH v3 07/10] spice: add keyboard

2010-08-26 Thread Anthony Liguori
On 08/26/2010 01:55 AM, Gerd Hoffmann wrote: Hi, + + qemu_spice_input_init(); Why not pass spice_server to qemu_spice_input_init() and avoid the global? We need the global anyway for the guest devices (not yet in this series). They are created using -device. Thus the initialization

Re: [Qemu-devel] Re: qemu-kvm faster than qemu?

2010-08-26 Thread Anthony Liguori
On 08/26/2010 02:59 AM, Gleb Natapov wrote: On Thu, Aug 26, 2010 at 09:53:27AM +0200, Gerd Hoffmann wrote: Hi, Also try qemu-kvm with -no-kvm-irqchip. I can't believe an in-kernel lapic would make this much of a difference with windows 7 but it's worth trying. Didn't try

[Qemu-devel] [Bug 534973] Re: qemu-system-ppc segfaults when booting from Debian lenny netinst image

2010-08-26 Thread Ian Sealy
I just tried this again with the latest git master and it worked fine. Excellent. -- qemu-system-ppc segfaults when booting from Debian lenny netinst image https://bugs.launchpad.net/bugs/534973 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to

Re: [Qemu-devel] Re: qemu-kvm faster than qemu?

2010-08-26 Thread Avi Kivity
On 08/26/2010 01:25 PM, Gleb Natapov wrote: Isn't that only required on SVM? No, old vmx too. 'flexpriority' in /proc/cpuinfo means tpr patching is unnecessary. But to use flexpriority you need in-kernel irqchip, so qemu.git will be slow even if you have it. -- error compiling committ

[Qemu-devel] [PATCH, RESEND] Fix SIGFPE race for vnc display resize

2010-08-26 Thread Chris Webb
cc39a92cbfc8 fixed a SIGFPE where the screen is resized to width/hight 1 and then receives a mouse click. However, there is a still a tiny window here for a race between the test for width/height > 1 and the division. Signed-off-by: Chris Webb --- Sending this as I've just seen a SIGFPE from one

Re: [Qemu-devel] Re: qemu-kvm faster than qemu?

2010-08-26 Thread Gleb Natapov
On Thu, Aug 26, 2010 at 12:24:11PM +0200, Alexander Graf wrote: > > On 26.08.2010, at 11:59, Gerd Hoffmann wrote: > > > On 08/26/10 09:59, Gleb Natapov wrote: > >> On Thu, Aug 26, 2010 at 09:53:27AM +0200, Gerd Hoffmann wrote: > >>> Hi, > >>> > Also try qemu-kvm with -no-kvm-irqchip. I ca

Re: [Qemu-devel] Re: qemu-kvm faster than qemu?

2010-08-26 Thread Alexander Graf
On 26.08.2010, at 11:59, Gerd Hoffmann wrote: > On 08/26/10 09:59, Gleb Natapov wrote: >> On Thu, Aug 26, 2010 at 09:53:27AM +0200, Gerd Hoffmann wrote: >>> Hi, >>> Also try qemu-kvm with -no-kvm-irqchip. I can't believe an in-kernel lapic would make this much of a difference with wi

Re: [Qemu-devel] [PATCH][v3] Introduce NBD named exports.

2010-08-26 Thread Laurent Vivier
>On 08/25/2010 03:48 PM, Laurent Vivier wrote: >> This patch allows to connect Qemu using NBD protocol to an nbd-server >> using named exports. >> > >Does using a named export make the NBD protocol incompatible with a >server that doesn't support named exports? IOW, it's essentially a new >p

Re: [Qemu-devel] Re: qemu-kvm faster than qemu?

2010-08-26 Thread Gerd Hoffmann
On 08/26/10 09:59, Gleb Natapov wrote: On Thu, Aug 26, 2010 at 09:53:27AM +0200, Gerd Hoffmann wrote: Hi, Also try qemu-kvm with -no-kvm-irqchip. I can't believe an in-kernel lapic would make this much of a difference with windows 7 but it's worth trying. Didn't try win7, but for winxp it

Re: [Qemu-devel] Template for developing a Qemu device with PCIe?and MSI-X

2010-08-26 Thread Isaku Yamahata
On Wed, Aug 25, 2010 at 05:39:50PM -0500, Adnan Khaleel wrote: > Hi Isaku, > > I've made some progress in coding the device template but its no where near > complete. > > I've created some files and am attaching it to this note. Based on what I > could > gather from the pcie source files I've ma

Re: [Qemu-devel] qemu make file

2010-08-26 Thread Stefan Hajnoczi
On Thu, Aug 26, 2010 at 10:05 AM, chandra shekar wrote: > stefan sorry for bothering you but iam new to qemu i did the above steps > and after 2nd step i got into gdb and i used "r" command to run, it gave > qemu: could not open disk image [...]: No such file or directory > so in place of [..] i h

[Qemu-devel] qemu hard freezing host

2010-08-26 Thread David Klasinc
Greetings, If I turn on the hardware virtualization in BIOS and then run qemu the host machine will freeze giving no details on what might cause the freeze. I did try the -no-kvm & -no-kvm-irqchip qemu will work and there will be no freeze. As you can see from the info below, CPU is Intel's E6600

Re: [Qemu-devel] [PATCH V2] balloon: Don't try fetching info if machine is stopped

2010-08-26 Thread Daniel P. Berrange
On Thu, Aug 26, 2010 at 01:47:50PM +0530, Amit Shah wrote: > On (Thu) Aug 26 2010 [10:05:44], Paolo Bonzini wrote: > > On 08/26/2010 08:05 AM, Amit Shah wrote: > > >This is what I have currently. It would need some timer handling in > > >the save/load case as well, right? > > > > When loading you

Re: [Qemu-devel] [PATCH] qdev: Reset hotplugged devices

2010-08-26 Thread Isaku Yamahata
On Wed, Aug 25, 2010 at 11:49:19AM -0500, Anthony Liguori wrote: > On 08/25/2010 10:17 AM, Isaku Yamahata wrote: >> On Wed, Aug 25, 2010 at 07:55:27AM -0500, Anthony Liguori wrote: >> Maybe we can merge the patches. As for your patch, I have some comment. - bus itself may want it

Re: [Qemu-devel] [PATCH V2] balloon: Don't try fetching info if machine is stopped

2010-08-26 Thread Amit Shah
On (Thu) Aug 26 2010 [10:05:44], Paolo Bonzini wrote: > On 08/26/2010 08:05 AM, Amit Shah wrote: > >This is what I have currently. It would need some timer handling in > >the save/load case as well, right? > > When loading you won't have any pending "info balloon" command, so I > think the timer n

Re: [Qemu-devel] [PATCH V2] balloon: Don't try fetching info if machine is stopped

2010-08-26 Thread Paolo Bonzini
On 08/26/2010 10:17 AM, Amit Shah wrote: > > Also, 5 seconds for a stopped guest is actually a lot, That's the problem; it's policy. Where and how to specify it? For a crashed/oopsed guest even 10 seconds may be okay, as long as it's 0 for a stopped guest. We need both patches. Paolo

Re: [Qemu-devel] qemu make file

2010-08-26 Thread Stefan Hajnoczi
On Thu, Aug 26, 2010 at 7:03 AM, chandra shekar wrote: > i need to run qemu in gdb,thanks Try: $ ./configure --disable-strip $ gdb --args x86_64-softmmu/qemu-system-x86_64 [...] The --disable-strip configure option causes an ELF executable with debug information to be produced. Stefan

Re: [Qemu-devel] [PATCH V2] balloon: Don't try fetching info if machine is stopped

2010-08-26 Thread Daniel P. Berrange
On Thu, Aug 26, 2010 at 10:05:44AM +0200, Paolo Bonzini wrote: > On 08/26/2010 08:05 AM, Amit Shah wrote: > >This is what I have currently. It would need some timer handling in > >the save/load case as well, right? > > When loading you won't have any pending "info balloon" command, so I > think t

Re: [Qemu-devel] [PATCH V2] balloon: Don't try fetching info if machine is stopped

2010-08-26 Thread Paolo Bonzini
On 08/26/2010 08:05 AM, Amit Shah wrote: This is what I have currently. It would need some timer handling in the save/load case as well, right? When loading you won't have any pending "info balloon" command, so I think the timer need not be preserved across migration. Also, 5 seconds for a s

Re: [Qemu-devel] Re: qemu-kvm faster than qemu?

2010-08-26 Thread Gleb Natapov
On Thu, Aug 26, 2010 at 09:53:27AM +0200, Gerd Hoffmann wrote: > Hi, > > >Also try qemu-kvm with -no-kvm-irqchip. I can't believe an in-kernel > >lapic would make this much of a difference with windows 7 but it's worth > >trying. > > Didn't try win7, but for winxp it is a *huge* difference. >

Re: [Qemu-devel] Re: qemu-kvm faster than qemu?

2010-08-26 Thread Gerd Hoffmann
Hi, Also try qemu-kvm with -no-kvm-irqchip. I can't believe an in-kernel lapic would make this much of a difference with windows 7 but it's worth trying. Didn't try win7, but for winxp it is a *huge* difference. cheers, Gerd