Re: [Qemu-devel] [PATCH 0/6] block: Add flush after metadata writes

2010-06-20 Thread Stefan Hajnoczi
Nice to see these patches :). Stefan

[Qemu-devel] Re: [Bug 596106] Re: kvm to emulate 64 bit cpu on 32 bit host

2010-06-20 Thread Paolo Bonzini
On 06/19/2010 03:01 PM, Natalia Portillo wrote: VMWare is able to do it, we should be able. They do it like TCG does it, not like KVM. Paolo

Re: [Qemu-devel] Re: [PATCH 09/10] pci: set PCI multi-function bit appropriately.

2010-06-20 Thread Michael S. Tsirkin
On Fri, Jun 18, 2010 at 10:38:20PM +0900, Isaku Yamahata wrote: > On Fri, Jun 18, 2010 at 03:44:04PM +0300, Michael S. Tsirkin wrote: > > > > If I understand correctly what this does, it goes over > > > > other functions of the same device, and sets the MULTI_FUNCTION bit > > > > for them if there'

[Qemu-devel] [Bug 513273] Re: kvm with -vga std is broken since karmic

2010-06-20 Thread Michael Robinson
Compared with the vgabios.bin supplied by upstream in qemu- kvm-0.12.4.tar.gz, the current Lucid vgabios regresses support for a number of vga modes (e.g. 1920x1200). -- kvm with -vga std is broken since karmic https://bugs.launchpad.net/bugs/513273 You received this bug notification because you

[Qemu-devel] Re: block: format vs. protocol, and how they stack

2010-06-20 Thread Avi Kivity
On 06/18/2010 03:59 PM, Markus Armbruster wrote: The code is pretty confused about format vs. protocol, and so are we. Let's try to figure them out. From cruising altitude, all this format, protocol, stacking business doesn't matter. We provide a bunch of arguments, and get an image. If you l

[Qemu-devel] [PATCH] Fix new mouse handler activation

2010-06-20 Thread Konstantin Khlebnikov
Activate newly added mouse event handles, as it was before commit 6fef28ee6e This patch will at least fix vmmouse, which was broken by that commit. Signed-off-by: Konstantin Khlebnikov --- input.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/input.c b/input.c index 6

[Qemu-devel] [Bug 586175] Re: Windows XP/2003 doesn't boot

2010-06-20 Thread Olivier Berger
** Bug watch added: Debian Bug tracker #579166 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=579166 ** Also affects: debian via http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=579166 Importance: Unknown Status: Unknown -- Windows XP/2003 doesn't boot https://bugs.launchpad.ne

Re: [Qemu-devel] [Bug 596106] Re: kvm to emulate 64 bit cpu on 32 bit host

2010-06-20 Thread Avi Kivity
On 06/19/2010 01:53 AM, Iggy wrote: KVM isn't an emulator. It virtualizes the CPU. A 32bit CPU can't be forced to run as a 64bit cpu. This is a wontfix. qemu actually supports this (32-bit qemu can run a 64-bit guest with kvm, provided that the kernel is 64-bit). So as well as a wontfix

[Qemu-devel] [Bug 586175] Re: Windows XP/2003 doesn't boot

2010-06-20 Thread Bug Watch Updater
** Changed in: debian Status: Unknown => New -- Windows XP/2003 doesn't boot https://bugs.launchpad.net/bugs/586175 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: Incomplete Status in Debian GNU/Linux: New Status

Re: [Qemu-devel] Re: [Bug 596106] Re: kvm to emulate 64 bit cpu on 32 bit host

2010-06-20 Thread Jamie Lokier
Paolo Bonzini wrote: > On 06/19/2010 03:01 PM, Natalia Portillo wrote: > >VMWare is able to do it, we should be able. > > They do it like TCG does it, not like KVM. I heard rumours VMWare use KVM-style chip virtualisation when running a 64-bit guest on a 32-bit host kernel on 64-bit hardware. If

Re: [Qemu-devel] [Bug 586175] Re: Windows XP/2003 doesn't boot

2010-06-20 Thread Gleb Natapov
On Sun, Jun 20, 2010 at 01:16:11PM -, Bug Watch Updater wrote: > ** Changed in: debian >Status: Unknown => New > > -- > Windows XP/2003 doesn't boot > https://bugs.launchpad.net/bugs/586175 > You received this bug notification because you are a member of qemu- > devel-ml, which is sub

Re: [Qemu-devel] [Bug 596106] Re: kvm to emulate 64 bit cpu on 32 bit host

2010-06-20 Thread Jamie Lokier
Natalia Portillo wrote: >You got the point wrong, I'm talking running WITH 64 bit hardware in a >32 bit guest. >This is done in Mac OS X Leopard (kernel is only 32 bit) and Mac OS X >Snow Leopard (using 32 bit kernel not 64 bit one) by VMWare, Parallels >and VirtualBox, as well

Re: [Qemu-devel] [Bug 596106] Re: kvm to emulate 64 bit cpu on 32 bit host

2010-06-20 Thread Natalia Portillo
Paolo said: > They do it like TCG does it, not like KVM. You are wrong, and it's easy to check as the speed is almost native. Having emulation would make it slow as hell. Jamie said: > >> VirtualPC is unable to run 64 bit guests at all even on 64 bit >> hosts > > Are you sure? Microsoft pr

[Qemu-devel] [Bug 521994] Re: Windows 98 doesn't detect mouse on qemu and SeaBIOS.

2010-06-20 Thread Konstantin Khlebnikov
this is fix for other mouse-stuck problem, or maybe the same. ** Attachment added: "fix-mouse-handler-activation" http://launchpadlibrarian.net/50636969/fix-mouse-handler-activation -- Windows 98 doesn't detect mouse on qemu and SeaBIOS. https://bugs.launchpad.net/bugs/521994 You received thi

[Qemu-devel] [PATCH] fw_cfg: convert to qdev

2010-06-20 Thread Blue Swirl
Convert fw_cfg to qdev. Signed-off-by: Blue Swirl --- hw/fw_cfg.c | 80 -- 1 files changed, 60 insertions(+), 20 deletions(-) diff --git a/hw/fw_cfg.c b/hw/fw_cfg.c index 22ebb50..72866ae 100644 --- a/hw/fw_cfg.c +++ b/hw/fw_cfg.c @@ -25

[Qemu-devel] [PATCH v2] qemu-io: check registered fds in command_loop()

2010-06-20 Thread MORITA Kazutaka
Some block drivers use an aio handler and do I/O completion routines in it. However, the handler is not invoked if we only do aio_read/write, because registered fds are not checked at all. This patch registers an aio handler of STDIO to checks whether we can read a command without blocking, and c

[Qemu-devel] [PATCH] Remove useless device dependency of HAS_AUDIO

2010-06-20 Thread Blue Swirl
System architecture dictates whether HAS_AUDIO is defined. It's then useless to check for HAS_AUDIO in files which are only used on those architectures which always have audio. Signed-off-by: Blue Swirl --- hw/marvell_88w8618_audio.c |4 hw/mips_jazz.c |4 hw/mips_m

[Qemu-devel] [PATCH] qemu-img: avoid calling exit(1) to release resources properly

2010-06-20 Thread MORITA Kazutaka
This patch removes exit(1) from error(), and properly releases resources such as a block driver and an allocated memory. For testing the Sheepdog block driver with qemu-iotests, it is necessary to call bdrv_delete() before the program exits. Because the driver releases the lock of VM images in th

[Qemu-devel] [PATCH v6] block: add sheepdog driver for distributed storage support

2010-06-20 Thread MORITA Kazutaka
Sheepdog is a distributed storage system for QEMU. It provides highly available block level storage volumes to VMs like Amazon EBS. This patch adds a qemu block driver for Sheepdog. Sheepdog features are: - No node in the cluster is special (no metadata node, no control node, etc) - Linear scal

[Qemu-devel] Re: [PATCH] Remove useless device dependency of HAS_AUDIO

2010-06-20 Thread malc
On Sun, 20 Jun 2010, Blue Swirl wrote: > System architecture dictates whether HAS_AUDIO is defined. It's then > useless to check for HAS_AUDIO in files which are only used on those > architectures which always have audio. It wasn't me who came up with HAS_AUDIO guard, so i can't comment much on t

Re: [Qemu-devel] [PATCH v4 6/7] MIPS: Initial support of fulong mini pc (machine construction)

2010-06-20 Thread Aurelien Jarno
All the patches except the PMON one seems fine, but I am unable to boot a kernel. I had to add support for the missing Godson integer instructions but the kernel (I tried a 2.6.33 one) goes into panic during the boot: [0.724000] Checking for the daddi bug... no. [0.892000] Cache error ex

[Qemu-devel] Re: [PATCH v4 7/7] MIPS: add PMON BIOS used by fulong mini pc

2010-06-20 Thread Aurelien Jarno
On Sat, Jun 05, 2010 at 06:41:33PM +0800, Huacai Chen wrote: > Signed-off-by: Huacai Chen > --- > pc-bios/README| 13 + > pc-bios/pmon_fulong2e.bin | Bin 0 -> 348188 bytes > 2 files changed, 13 insertions(+), 0 deletions(-) > create mode 100755 pc-bios/pmon_fulong2e.b

Re: [Qemu-devel] [PATCH][RESEND] qdev-properties: Fix (u)intXX parsers

2010-06-20 Thread Richard Henderson
On 06/18/2010 09:27 AM, Kevin Wolf wrote: > scanf calls must not use PRI constants, they have probably the wrong size and > corrupt memory. We could replace them by SCN ones, but strtol is simpler than > scanf here anyway. While at it, also fix the parsers to reject garbage after > the number ("409

[Qemu-devel] Re: [PATCH 2/2] Remove virtio_blk VBID ioctl

2010-06-20 Thread Rusty Russell
On Sat, 19 Jun 2010 04:08:03 am Ryan Harper wrote: > With the availablility of a sysfs device attribute for examining disk serial > numbers the ioctl is no longer needed. The user-space changes for this aren't > upstream yet so we don't have any users to worry about. If John Cooper acks this, I'l

[Qemu-devel] [PATCH] net: delete QemuOpts when net_client_init() fails.

2010-06-20 Thread Yoshiaki Tamura
This fixes the following scenario using QMP. First, put a bogus argument "foo" to "type", which results in an error. {"execute": "netdev_add", "arguments": { "type": "foo", "id": "netdev1" } } Then, call it again with correct argument "user". {"execute": "netdev_add", "arguments": { "type": "user"

[Qemu-devel] Re: [PATCH 1/2] Add 'serial' attribute to virtio-blk devices

2010-06-20 Thread Rusty Russell
On Sat, 19 Jun 2010 04:08:02 am Ryan Harper wrote: > Create a new attribute for virtio-blk devices that will fetch the serial > number > of the block device. This attribute can be used by udev to create disk/by-id > symlinks for devices that don't have a UUID (filesystem) associated with them. >

[Qemu-devel] Re: [PATCH 2/2] Remove virtio_blk VBID ioctl

2010-06-20 Thread Ryan Harper
* Rusty Russell [2010-06-20 20:31]: > On Sat, 19 Jun 2010 04:08:03 am Ryan Harper wrote: > > With the availablility of a sysfs device attribute for examining disk serial > > numbers the ioctl is no longer needed. The user-space changes for this > > aren't > > upstream yet so we don't have any us

Re: [Qemu-devel] Re: [PATCH v4 7/7] MIPS: add PMON BIOS used by fulong mini pc

2010-06-20 Thread yajin
2010/6/21 Aurelien Jarno : > On Sat, Jun 05, 2010 at 06:41:33PM +0800, Huacai Chen wrote: >> Signed-off-by: Huacai Chen >> --- >>  pc-bios/README            |   13 + >>  pc-bios/pmon_fulong2e.bin |  Bin 0 -> 348188 bytes >>  2 files changed, 13 insertions(+), 0 deletions(-) >>  create

[Qemu-devel] Re: [PATCH 2/2] Remove virtio_blk VBID ioctl

2010-06-20 Thread john cooper
Rusty Russell wrote: > On Sat, 19 Jun 2010 04:08:03 am Ryan Harper wrote: >> With the availablility of a sysfs device attribute for examining disk serial >> numbers the ioctl is no longer needed. The user-space changes for this >> aren't >> upstream yet so we don't have any users to worry about.

[Qemu-devel] [PATCH v4 6/6] pci_bridge: make pci bridge aware of pci multi function bit.

2010-06-20 Thread Isaku Yamahata
make pci bridge aware of pci multi function property and let pci generic code to set the bit. Cc: Blue Swirl Signed-off-by: Isaku Yamahata --- hw/apb_pci.c |7 ++- hw/dec_pci.c |2 +- hw/pci.c |5 +++-- hw/pci.h |3 ++- 4 files changed, 8 insertions(+), 9 deletions(-

[Qemu-devel] [PATCH v4 2/6] pci: remove PCIDeviceInfo::header_type

2010-06-20 Thread Isaku Yamahata
replace PCIDeviceInfo::header_type with is_bridge as suggested by Michael S. Tsirkin Signed-off-by: Isaku Yamahata --- hw/apb_pci.c |2 +- hw/dec_pci.c |2 +- hw/pci.c | 15 --- hw/pci.h |8 ++-- 4 files changed, 16 insertions(+), 11 deletions(-) diff --gi

[Qemu-devel] [PATCH v4 5/6] pci: use pci_create_simple_mf()

2010-06-20 Thread Isaku Yamahata
use pci_create_simple_mf() for normal device which sets multifunction bit. At the moment, only pc_piix.c and mips_malta.c uses multifunction devices with piix3/4 pci-isa bridge. And other boards don't populate those devices. Signed-off-by: Isaku Yamahata --- hw/piix4.c|3 +-- hw/piix_pci

[Qemu-devel] [PATCH v4 0/6] pci: multi-function bit fixes

2010-06-20 Thread Isaku Yamahata
Changes v3 -> v4: - introduced multifunction property and add validation check to catch user operation errors. - some more clean up. patch description: When pci devices are populated as multi-function, OS can fail to probe function > 0. It's because multi function bit of header type register in

[Qemu-devel] [PATCH v4 4/6] pci: don't overwrite multi functio bit in pci header type.

2010-06-20 Thread Isaku Yamahata
Don't overwrite pci header type. Otherwise, multi function bit which pci_init_header_type() sets appropriately is lost. Anyway PCI_HEADER_TYPE_NORMAL is zero, so it is unnecessary to zero which is already zero cleared. how to test: run qemu and issue info pci to see whether a device in question is

[Qemu-devel] [PATCH v4 3/6] pci: set PCI multi-function bit appropriately.

2010-06-20 Thread Isaku Yamahata
Set PCI multi-function bit according to multifunction property. PCI address, devfn ,is exported to users as addr property, so users can populate pci function(PCIDevice in qemu) at arbitrary devfn. It means each function(PCIDevice) don't know whether pci device (PCIDevice[8]) is multi function or no

[Qemu-devel] [PATCH v4 1/6] pci: use PCI_DEVFN() where appropriate.

2010-06-20 Thread Isaku Yamahata
Use PCI_DEVFN() and PCI_FUNC_MAX where appropriate. This patch make it clear that func = 0 and added assert() to ensure it. This patch guarantees that auto assigned function is always single function device at function = 0. Cc: Aurelien Jarno Cc: Yu Liu Cc: Paul Brook Signed-off-by: Isaku Yamah

[Qemu-devel] Re: [PATCH 1/2] Add 'serial' attribute to virtio-blk devices

2010-06-20 Thread john cooper
Rusty Russell wrote: > On Sat, 19 Jun 2010 04:08:02 am Ryan Harper wrote: >> Create a new attribute for virtio-blk devices that will fetch the serial >> number >> of the block device. This attribute can be used by udev to create disk/by-id >> symlinks for devices that don't have a UUID (filesyste

Re: [Qemu-devel] [PATCH v4 6/7] MIPS: Initial support of fulong mini pc (machine construction)

2010-06-20 Thread chen huacai
Loongson-specific instructions haven't implememted now. So, if want to boot a linux kernel, we should built a 32bit one and drop -march=loongson2e compiler flags. For simplification, please use the kernel patch (for 2.6.33) in the attachment and then use arch/mips/configs/fuloong2e_defconfig to com