Re: [Qemu-devel] qemu-system-sparc uses all host cpu (continued)

2011-01-14 Thread Blue Swirl
On Sat, Jan 15, 2011 at 1:44 AM, Mateusz Loskot wrote: > Hi, > > I'm running QEMU built from Git current repo to emulate SPARC with > NetBSD 5.0 installed. My host runs x86_64 GNU/Linux with kernel 2.6.35 > on Intel P8600 CPU. > > I've noticed qemu-system-sparc constantly uses 100% of CPU > I foun

[Qemu-devel] Lembrete sobre o convite de Alexandre Felipe Muller de Souza

2011-01-14 Thread Alexandre Felipe Muller de Souza (LinkedIn Invitations)
LinkedIn Este convite está aguardando sua resposta: De Alexandre Felipe Muller de Souza -- (c) 2010, LinkedIn Corporation

Re: [Qemu-devel] [RFC] Propose the Fast Virtual Disk (FVD) image format that outperforms QCOW2 by 249%

2011-01-14 Thread Chunqiang Tang
> The community block I/O test suite is qemu-iotests: > http://git.kernel.org/?p=linux/kernel/git/hch/qemu-iotests.git;a=summary > If you have tests that you'd like to contribute, please put them into > that framework so other developers can run them as part of their > regular testing. Hi Stefan,

[Qemu-devel] qemu-system-sparc uses all host cpu (continued)

2011-01-14 Thread Mateusz Loskot
Hi, I'm running QEMU built from Git current repo to emulate SPARC with NetBSD 5.0 installed. My host runs x86_64 GNU/Linux with kernel 2.6.35 on Intel P8600 CPU. I've noticed qemu-system-sparc constantly uses 100% of CPU I found similar report in the ml archives [1] and tried to apply the patches

[Qemu-devel] [PATCH] usb-msd: Add usb-storage, removable=on|off property

2011-01-14 Thread Stefan Hajnoczi
USB Mass Storage Devices sometimes have the RMB (removable) bit set in the SCSI INQUIRY response. Thumbdrives tend to have the bit set whereas hard disks do not. Operating systems differentiate between removable devices and fixed devices. Under Linux, the anaconda installer looks for removable d

Re: [Qemu-devel] tcg shift ops and magnitudes larger than register size

2011-01-14 Thread Stuart Brady
On Thu, Jan 13, 2011 at 09:56:35AM +0100, Edgar E. Iglesias wrote: > On Wed, Jan 12, 2011 at 08:13:45PM -0500, Mike Frysinger wrote: > > are there any rules with the tcg sar/shl/shr ops and their magnitudes > > ? such as "magnitudes cannot be larger than the register size" ? > > Yes, the result i

Re: [Qemu-devel] Re: [fedora-virt] Fedora Virt status

2011-01-14 Thread Richard W.M. Jones
You shouldn't use local files (esp. not qcow2) for performance testing. What does it look like if you use an LV for disk? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over

[Qemu-devel] [PATCH] qed: Refuse to create images on block devices

2011-01-14 Thread Stefan Hajnoczi
QED relies on the underlying filesystem to extend the file and maintain its size. Check that images are not created on a block device. Signed-off-by: Stefan Hajnoczi --- block/qed.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/block/qed.c b/block/qed.c index 085

qemu-devel@nongnu.org

2011-01-14 Thread Aurelien Jarno
On Fri, Jan 14, 2011 at 10:05:11PM +, 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] Fwd: Re: port-sparc/44389: awk failure during m4 installation with pkgsrc

2011-01-14 Thread Blue Swirl
On Fri, Jan 14, 2011 at 9:41 PM, Mateusz Loskot wrote: > Hi, > > I emulate SPARC with NetBSD 5.0 installed and I've experienced a problem > with pkgsrc installing one of packages. > I submitted bug report to NetBSD team and received short response > suggesting it is likely QEMU problem (see origin

qemu-devel@nongnu.org

2011-01-14 Thread Blue Swirl
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) ) Signed-off-by: Blue Swirl --- target-sh4/helper.c |4 ++-- 1 files changed, 2 in

Re: [Qemu-devel] Re: [fedora-virt] Fedora Virt status

2011-01-14 Thread Boris Derzhavets
> I thought you said they were using virtio? * Post installation procedure for W7 (x64) & Rawhide Libvirt on F14 * 1. Original setup on IDE

Re: [Qemu-devel] [PATCH 1/8] fix 'no such file' error from make_device_config.sh

2011-01-14 Thread Blue Swirl
On Fri, Jan 14, 2011 at 7:57 PM, Stefan Weil wrote: > Am 13.01.2011 07:34, schrieb David Ahern: >> >> make_device_config currently emits an error: >> >> make config-all-devices.mak >>   GEN   x86_64-softmmu/config-devices.mak >> /home/dsa/kvm/releases/qemu.git/make_device_config.sh: line 21: >> /h

Re: [Qemu-devel] [PATCH 02/11] config: settings from default-configs need to be included in header files

2011-01-14 Thread David Ahern
On 01/14/11 14:36, Blue Swirl wrote: > On Fri, Jan 14, 2011 at 9:04 PM, David Ahern wrote: >> >> >> On 01/14/11 13:57, Blue Swirl wrote: > That's OK, but the correct fix is to change the design of the machine > model to something more advanced where the unwanted objects are simply >

Re: [Qemu-devel] [PATCH 01/11] fix 'no such file' error from make_device_config.sh

2011-01-14 Thread David Ahern
On 01/14/11 14:04, Stefan Weil wrote: > Am 14.01.2011 20:12, schrieb David Ahern: >> make_device_config currently emits an error: >> >> make config-all-devices.mak >>GEN x86_64-softmmu/config-devices.mak >> /home/dsa/kvm/releases/qemu.git/make_device_config.sh: line 21: >> /home/dsa/kvm/rel

[Qemu-devel] Fwd: Re: port-sparc/44389: awk failure during m4 installation with pkgsrc

2011-01-14 Thread Mateusz Loskot
Hi, I emulate SPARC with NetBSD 5.0 installed and I've experienced a problem with pkgsrc installing one of packages. I submitted bug report to NetBSD team and received short response suggesting it is likely QEMU problem (see original message below). Shortly, the problem is that AWK throws "floati

Re: [Qemu-devel] Re: [fedora-virt] Fedora Virt status

2011-01-14 Thread Boris Derzhavets
Set up "Virtio" for boot up disk is  a "post install" procedure on F14. Boris. --- On Fri, 1/14/11, Richard W.M. Jones wrote: From: Richard W.M. Jones Subject: Re: [Qemu-devel] Re: [fedora-virt] Fedora Virt status To: "Boris Derzhavets" Cc: "Cole Robinson" , v...@lists.fedoraproject.org, "Ju

Re: [Qemu-devel] SPARC emulations

2011-01-14 Thread Stefan Weil
Am 14.01.2011 22:09, schrieb Mateusz Loskot: On 14/01/11 19:40, Artyom Tarasenko wrote: On Fri, Jan 14, 2011 at 6:56 PM, Mateusz Loskot wrote: I use QEMU to emulate SPARC for NetBSD. By default, it uses SUNW/SPARCStation-5. As far as I know, it is also possible to switch to SPARCStat

Re: [Qemu-devel] [PATCH 02/11] config: settings from default-configs need to be included in header files

2011-01-14 Thread Blue Swirl
On Fri, Jan 14, 2011 at 9:04 PM, David Ahern wrote: > > > On 01/14/11 13:57, Blue Swirl wrote: That's OK, but the correct fix is to change the design of the machine model to something more advanced where the unwanted objects are simply not linked in, without any changes to board cod

Re: [Qemu-devel] Re: [fedora-virt] Fedora Virt status

2011-01-14 Thread Richard W.M. Jones
On Fri, Jan 14, 2011 at 12:39:39PM -0800, Boris Derzhavets wrote: > > Newer virt-manager versions also allow setting this in the UI. > > I just set IDE Disk1 "cashe mode" none  before install. I thought you said they were using virtio? Rich. -- Richard Jones, Virtualization Group, Red Hat http

Re: [Qemu-devel] SPARC emulations

2011-01-14 Thread Mateusz Loskot
On 14/01/11 21:21, Stefan Weil wrote: > Am 14.01.2011 22:09, schrieb Mateusz Loskot: >> On 14/01/11 19:40, Artyom Tarasenko wrote: >> >>> On Fri, Jan 14, 2011 at 6:56 PM, Mateusz Loskot >>> wrote: >>> I use QEMU to emulate SPARC for NetBSD. By default, it uses SUNW/SPARCStation-5

Re: [Qemu-devel] SPARC emulations

2011-01-14 Thread Mateusz Loskot
On 14/01/11 19:40, Artyom Tarasenko wrote: > On Fri, Jan 14, 2011 at 6:56 PM, Mateusz Loskot wrote: >> I use QEMU to emulate SPARC for NetBSD. >> By default, it uses SUNW/SPARCStation-5. >> As far as I know, it is also possible to switch to SPARCStation-10. >> How can I find what other SPARCs are

Re: [Qemu-devel] [PATCH 2/3] block: tell drivers about an image resize

2011-01-14 Thread Ryan Harper
* Christoph Hellwig [2011-01-14 10:27]: > Add a new size_changed flag in the BlockDriverState and call the > change_cb callback to notify drivers about a size change. > > Signed-off-by: Christoph Hellwig > > Index: qemu/block.c > =

Re: [Qemu-devel] [PATCH 01/11] fix 'no such file' error from make_device_config.sh

2011-01-14 Thread Stefan Weil
Am 14.01.2011 20:12, schrieb David Ahern: make_device_config currently emits an error: make config-all-devices.mak GEN x86_64-softmmu/config-devices.mak /home/dsa/kvm/releases/qemu.git/make_device_config.sh: line 21: /home/dsa/kvm/releases/qe Root cause is a space in the filename (determi

Re: [Qemu-devel] [PATCH 02/11] config: settings from default-configs need to be included in header files

2011-01-14 Thread David Ahern
On 01/14/11 13:57, Blue Swirl wrote: >>> That's OK, but the correct fix is to change the design of the machine >>> model to something more advanced where the unwanted objects are simply >>> not linked in, without any changes to board code. This is not so >>> trivial and also many devices are not

Re: [Qemu-devel] [PATCH 02/11] config: settings from default-configs need to be included in header files

2011-01-14 Thread Blue Swirl
On Fri, Jan 14, 2011 at 8:47 PM, David Ahern wrote: > > > On 01/14/11 13:31, Blue Swirl wrote: >> On Fri, Jan 14, 2011 at 8:24 PM, David Ahern wrote: >>> >>> >>> On 01/14/11 13:17, Blue Swirl wrote: On Fri, Jan 14, 2011 at 7:12 PM, David Ahern wrote: > Currently, device config settings

Re: [Qemu-devel] [RFC] Propose the Fast Virtual Disk (FVD) image format that outperforms QCOW2 by 249%

2011-01-14 Thread Chunqiang Tang
> Based on my limited understanding, I think FVD shares a > lot in common with the COW format (block/cow.c). > > But I think most of the advantages you mention could be considered as > additions to either qcow2 or qed. At any rate, the right way to have > that discussion is in the form of patc

Re: [Qemu-devel] [PATCH 02/11] config: settings from default-configs need to be included in header files

2011-01-14 Thread David Ahern
On 01/14/11 13:31, Blue Swirl wrote: > On Fri, Jan 14, 2011 at 8:24 PM, David Ahern wrote: >> >> >> On 01/14/11 13:17, Blue Swirl wrote: >>> On Fri, Jan 14, 2011 at 7:12 PM, David Ahern wrote: Currently, device config settings in the default-configs file are not propogated into the c

Re: [Qemu-devel] paravirtual tablet v3

2011-01-14 Thread Anthony Liguori
On 01/14/2011 10:35 AM, Gerd Hoffmann wrote: Hi, Now v3 featuring multitouch ;) cheers, Gerd I really think multitouch needs to be a feature such that the guest can nack it and the host can adjust accordingly. If it's there from day 1, that's fine, but it still should be a feature. T

Re: [Qemu-devel] Re: [fedora-virt] Fedora Virt status

2011-01-14 Thread Boris Derzhavets
> Newer virt-manager versions also allow setting this in the UI. I just set IDE Disk1 "cashe mode" none  before install. No relief Boris. --- On Fri, 1/14/11, Cole Robinson wrote: From: Cole Robinson Subject: Re: [Qemu-devel] Re: [fedora-virt] Fedora Virt status To: "Boris Derzhavets" Cc: "

Re: [Qemu-devel] [PATCH 02/11] config: settings from default-configs need to be included in header files

2011-01-14 Thread Blue Swirl
On Fri, Jan 14, 2011 at 8:24 PM, David Ahern wrote: > > > On 01/14/11 13:17, Blue Swirl wrote: >> On Fri, Jan 14, 2011 at 7:12 PM, David Ahern wrote: >>> Currently, device config settings in the default-configs file are not >>> propogated into the config*.h files. While the Makefile rules observ

Re: [Qemu-devel] [PATCH 02/11] config: settings from default-configs need to be included in header files

2011-01-14 Thread David Ahern
On 01/14/11 13:17, Blue Swirl wrote: > On Fri, Jan 14, 2011 at 7:12 PM, David Ahern wrote: >> Currently, device config settings in the default-configs file are not >> propogated into the config*.h files. While the Makefile rules observe them >> through the *.mak files, the CONFIG options are n

[Qemu-devel] Re: [fedora-virt] Fedora Virt status (XML for F14)

2011-01-14 Thread Dennis Jacobfeuerborn
On 01/14/2011 09:03 PM, Boris Derzhavets wrote: P.S. I did mount SL 6 "/" folder on /mnt. But /mnt/etc/libvirtd/qemu appears to be empty. Have you tried "virsh dumpxml " on the SL6 system? Regards, Dennis

Re: [Qemu-devel] Re: [fedora-virt] Fedora Virt status

2011-01-14 Thread Cole Robinson
On 01/14/2011 01:09 PM, Boris Derzhavets wrote: >> Boris can you help me to parse this ... > >> SL6 = Scientific Linux 6? > > Yes, I work with SL6 alpha 4 > >> And you're saying that Windows 7 is much faster on SL6 than on Fedora 14? > > Installation itself . Packages deployment phase is much

[Qemu-devel] Re: [fedora-virt] Fedora Virt status (XML for SL6)

2011-01-14 Thread Boris Derzhavets
[root@ServerSL6APH ~]# uname -a Linux ServerSL6APH 2.6.32-71.14.1.el6.x86_64 #1 SMP Wed Jan 12 11:40:37 CST 2011 x86_64 x86_64 x86_64 GNU/Linux [root@ServerSL6APH ~]# virsh version Compiled against library: libvir 0.8.1 Using library: libvir 0.8.1 Using API: QEMU 0.8.1 Running hypervisor: QEMU 0.

Re: [Qemu-devel] [PATCH 02/11] config: settings from default-configs need to be included in header files

2011-01-14 Thread Blue Swirl
On Fri, Jan 14, 2011 at 7:12 PM, David Ahern wrote: > Currently, device config settings in the default-configs file are not > propogated into the config*.h files. While the Makefile rules observe them > through the *.mak files, the CONFIG options are not usable within the .c > files. > > This p

[Qemu-devel] Re: [fedora-virt] Fedora Virt status (XML for F14)

2011-01-14 Thread Boris Derzhavets
XML on F14 [root@fedora14b Downloads]# uname -a Linux fedora14b 2.6.35.10-74.fc14.x86_64 #1 SMP Thu Dec 23 16:04:50 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux [root@fedora14b Downloads]# virsh version Compiled against library: libvir 0.8.7 Using library: libvir 0.8.7 Using API: QEMU 0.8.7 Running hy

Re: [Qemu-devel] [PATCH 1/8] fix 'no such file' error from make_device_config.sh

2011-01-14 Thread Stefan Weil
Am 13.01.2011 07:34, schrieb David Ahern: make_device_config currently emits an error: make config-all-devices.mak GEN x86_64-softmmu/config-devices.mak /home/dsa/kvm/releases/qemu.git/make_device_config.sh: line 21: /home/dsa/kvm/releases/qemu.git/default-configs/pci.mak : No such file or

[Qemu-devel] [Bug 604872] Re: qemu-system-arm segfaults emulating versatile machine after running debootstrap --second-stage inside vm

2011-01-14 Thread Aurelien Jarno
** Changed in: qemu Status: In Progress => Fix Committed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/604872 Title: qemu-system-arm segfaults emulating versatile machine after running deb

[Qemu-devel] [Bug 581335] Re: ARM Thumb IT block incorrect execution after interrupt

2011-01-14 Thread Aurelien Jarno
** Changed in: qemu Status: New => Fix Committed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/581335 Title: ARM Thumb IT block incorrect execution after interrupt Status in QEMU: Fix Com

[Qemu-devel] Re: [fedora-virt] Fedora Virt status

2011-01-14 Thread Scott Dowdle
Boris, - Original Message - > XML profiles for F14 and SL6 will be sent to you a bit latter. I > cannot reboot box right now. You don't have to reboot the box to look at the xml configs. On the vm host machine just look at/copy the VM config files in /etc/libvirtd/qemu/ (or something l

Re: [Qemu-devel] SPARC emulations

2011-01-14 Thread Artyom Tarasenko
On Fri, Jan 14, 2011 at 6:56 PM, Mateusz Loskot wrote: > I use QEMU to emulate SPARC for NetBSD. > By default, it uses SUNW/SPARCStation-5. > As far as I know, it is also possible to switch to SPARCStation-10. > How can I find what other SPARCs are supported, if any? man qemu, the option -M ? is

Re: [Qemu-devel] [PATCH 0/4] target-arm: Fix VRSQRTS

2011-01-14 Thread Aurelien Jarno
On Fri, Jan 07, 2011 at 09:26:23AM +, Peter Maydell wrote: > This patch series fixes various bugs in VRSQRTS including the > major one that it was calculating completely the wrong value > (missing a division by 2). > > It also introduces the infrastructure to support the ARM > "Standard FPSCR

Re: [Qemu-devel] [PATCH v2 0/8] target-arm: Translate based on TB flags, not CPUState

2011-01-14 Thread Aurelien Jarno
On Tue, Jan 11, 2011 at 10:12:10PM +, Peter Maydell wrote: > This patchset corrects a number of places in the ARM translation code > which were generating code which was dependent on values in the CPUState > structure which might change at runtime. This is a bad idea for two > reasons. Firstly,

Re: [Qemu-devel] [PATCH 0/4] target-arm: get IT bits right at exceptions

2011-01-14 Thread Aurelien Jarno
On Mon, Jan 10, 2011 at 11:11:48PM +, Peter Maydell wrote: > This patchset (when combined with my previous patchset "Translate > based on TB flags, not CPUState") is a fix for > https://bugs.launchpad.net/qemu/+bug/581335 > where we were not getting the IT (conditional execution) bits in > the

[Qemu-devel] [PATCH 10/11] config: add CONFIG_APPLESMC

2011-01-14 Thread David Ahern
Signed-off-by: David Ahern --- Makefile.target|3 ++- default-configs/i386-softmmu.mak |1 + default-configs/x86_64-softmmu.mak |1 + 3 files changed, 4 insertions(+), 1 deletions(-) diff --git a/Makefile.target b/Makefile.target index f3ed066..24899ea 100644 --

[Qemu-devel] [PATCH 09/11] config: fix compile for CONFIG_FDC=n

2011-01-14 Thread David Ahern
Signed-off-by: David Ahern --- hw/pc.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 11b570f..b50bbc4 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -191,6 +191,7 @@ static void pic_irq_request(void *opaque, int irq, int level) #define REG_E

[Qemu-devel] [PATCH 07/11] config: handle CONFIG_VGA_ISA=n

2011-01-14 Thread David Ahern
Fix compile errors and remove -M isapc option for CONFIG_VGA_ISA=n. Signed-off-by: David Ahern --- hw/pc.c |2 ++ hw/pc_piix.c |6 ++ 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index e7514fd..11b570f 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -10

[Qemu-devel] [PATCH 04/11] config: fix compile for CONFIG_PARALLEL=n

2011-01-14 Thread David Ahern
Signed-off-by: David Ahern --- hw/pc.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 50795e8..18ec0df 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -1138,11 +1138,13 @@ void pc_basic_device_init(qemu_irq *isa_irq, } } +#ifdef CONFIG_PARA

[Qemu-devel] [PATCH 11/11] config: allow none as a configure option to disable all sound cards

2011-01-14 Thread David Ahern
Signed-off-by: David Ahern --- configure |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/configure b/configure index 438219b..8ae997c 100755 --- a/configure +++ b/configure @@ -77,7 +77,7 @@ cross_prefix="" cc="gcc" audio_drv_list="" audio_card_list="ac97 es1370 sb16

[Qemu-devel] [PATCH 03/11] config: fix compile for CONFIG_VMWARE_VGA=n

2011-01-14 Thread David Ahern
Signed-off-by: David Ahern --- hw/pc.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index fface7d..50795e8 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -1069,11 +1069,13 @@ void pc_vga_init(PCIBus *pci_bus) } else { isa_cirrus_vga_init

[Qemu-devel] [PATCH 08/11] config: fix compile for CONFIG_IDE_ISA=n

2011-01-14 Thread David Ahern
Signed-off-by: David Ahern --- hw/pc_piix.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/hw/pc_piix.c b/hw/pc_piix.c index 7d65e37..68f602f 100644 --- a/hw/pc_piix.c +++ b/hw/pc_piix.c @@ -38,9 +38,11 @@ #define MAX_IDE_BUS 2 +#ifdef CONFIG_IDE_ISA static

[Qemu-devel] [PATCH 01/11] fix 'no such file' error from make_device_config.sh

2011-01-14 Thread David Ahern
make_device_config currently emits an error: make config-all-devices.mak GEN x86_64-softmmu/config-devices.mak /home/dsa/kvm/releases/qemu.git/make_device_config.sh: line 21: /home/dsa/kvm/releases/qe Root cause is a space in the filename (determined by Markus Armbruster). Change from Marku

[Qemu-devel] [PATCH 02/11] config: settings from default-configs need to be included in header files

2011-01-14 Thread David Ahern
Currently, device config settings in the default-configs file are not propogated into the config*.h files. While the Makefile rules observe them through the *.mak files, the CONFIG options are not usable within the .c files. This patch adds the settings to the header files. To do that the host d

[Qemu-devel] [PATCH 06/11] config: fix compile for CONFIG_NE2000_ISA=n

2011-01-14 Thread David Ahern
Signed-off-by: David Ahern --- hw/pc.c |4 hw/pc_piix.c |2 ++ 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 6a55d2f..e7514fd 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -822,9 +822,11 @@ static void load_linux(void *fw_cfg, #define NE2000_N

[Qemu-devel] [PATCH 05/11] remove unused parallel_* variables from pc.c

2011-01-14 Thread David Ahern
Signed-off-by: David Ahern --- hw/pc.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 18ec0df..6a55d2f 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -826,9 +826,6 @@ static const int ne2000_io[NE2000_NB_MAX] = { 0x300, 0x320, 0x340, 0x360,

[Qemu-devel] [PATCH 00/11] misc cleanups for use of config settings

2011-01-14 Thread David Ahern
Start point for use of CONFIG options. This series addresses compiling out unwanted devices. v1 --> v2 - use Markus' solution for make_device_config - address comments from Paolo regarding CONFIG_FDC and CONFIG_VGA_ISA - add patch to actually use CONFIG options in C-code - add CONFIG_APPLESMC opti

[Qemu-devel] [PATCH V2 3/3] xen: Introduce VGA sync dirty bitmap support

2011-01-14 Thread anthony . perard
From: Anthony PERARD This patch introduces phys memory client for Xen. Only sync dirty_bitmap and set_memory are actually implemented. migration_log will stay empty for the moment. Xen can only log one range for bit change, so only the range in the first call will be synced. Signed-off-by: Ant

[Qemu-devel] [PATCH V2 0/3] Xen VGA dirtybit support

2011-01-14 Thread anthony . perard
From: Anthony PERARD Hi, This three patches provides the support for sync dirty bitmap. The sync dirty bitmap is not provided for Xen 3.3. This series depends on the other series "Xen device model support". Change v1 -> v2: * Intruduce a patch to put log_start/log_stop in CPUPhysMemoryClient

[Qemu-devel] [PATCH V2 1/3] Introduce log_start/log_stop in CPUPhysMemoryClient

2011-01-14 Thread anthony . perard
From: Anthony PERARD In order to use log_start/log_stop with Xen as well in the vga code, this two operations have been put in CPUPhysMemoryClient. The two new functions cpu_physical_log_start,cpu_physical_log_stop are used in hw/vga.c and replace the kvm_log_start/stop. With this, vga does no l

[Qemu-devel] [PATCH V2 2/3] xen: Add xc_domain_add_to_physmap to xen_interface.

2011-01-14 Thread anthony . perard
From: Anthony PERARD This function will be used to support sync dirty bitmap. This come with a check against every Xen release, and special implementation for Xen version that doesn't have this specific call. This function will not be usable with Xen 3.3 because the behavior is different. Sign

[Qemu-devel] [PATCH 05/19] vl.c: add deleted flag for deleting the handler.

2011-01-14 Thread Yoshiaki Tamura
Make deleting handlers robust against deletion of any elements in a handler by using a deleted flag like in file descriptors. Signed-off-by: Yoshiaki Tamura --- vl.c | 13 + 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/vl.c b/vl.c index 0292184..8bbb785 100644 ---

[Qemu-devel] Re: [fedora-virt] Fedora Virt status

2011-01-14 Thread Boris Derzhavets
> Boris can you help me to parse this ... > SL6 = Scientific Linux 6?  Yes, I work with SL6 alpha 4 > And you're saying that Windows 7 is much faster on SL6 than on Fedora 14? Installation itself . Packages deployment phase is much faster on SL 6 ( alpha 4), even if I don't pre-load viostor.sy

[Qemu-devel] Re: [PATCH 6/8] x86_64 config: fix compile for CONFIG_VGA_ISA=n

2011-01-14 Thread David Ahern
On 01/14/11 00:31, Paolo Bonzini wrote: > On 01/13/2011 06:28 PM, David Ahern wrote: @@ -1087,8 +1087,10 @@ void pc_vga_init(PCIBus *pci_bus) } else if (std_vga_enabled) { if (pci_bus) { pci_vga_init(pci_bus); +#ifdef CONFIG_VGA_ISA

[Qemu-devel] Re: [PATCH v3 00/15] preparation for autoconfy configure script

2011-01-14 Thread Blue Swirl
Thanks, applied all. On Fri, Jan 14, 2011 at 9:58 AM, Paolo Bonzini wrote: > On 12/23/2010 11:43 AM, Paolo Bonzini wrote: >> >> This is part two of the configure series.  It does various miscellaneous >> changes to the configure script that make it possible to later handle >> an autoconfy command

[Qemu-devel] [PATCH 07/19] Introduce fault tolerant VM transaction QEMUFile and ft_mode.

2011-01-14 Thread Yoshiaki Tamura
This code implements VM transaction protocol. Like buffered_file, it sits between savevm and migration layer. With this architecture, VM transaction protocol is implemented mostly independent from other existing code. Signed-off-by: Yoshiaki Tamura Signed-off-by: OHMURA Kei --- Makefile.objs

[Qemu-devel] [PATCH 17/19] migration-tcp: modify tcp_accept_incoming_migration() to handle ft_mode, and add a hack not to close fd when ft_mode is enabled.

2011-01-14 Thread Yoshiaki Tamura
When ft_mode is set in the header, tcp_accept_incoming_migration() sets ft_trans_incoming() as a callback, and call qemu_file_get_notify() to receive FT transaction iteratively. We also need a hack no to close fd before moving to ft_transaction mode, so that we can reuse the fd for it. vm_change_

[Qemu-devel] SPARC emulations

2011-01-14 Thread Mateusz Loskot
Hi, I use QEMU to emulate SPARC for NetBSD. By default, it uses SUNW/SPARCStation-5. As far as I know, it is also possible to switch to SPARCStation-10. How can I find what other SPARCs are supported, if any? Also, is there any matrix with successfully tested combinations of architecture vs OS ?

[Qemu-devel] [PATCH 13/19] net: insert event-tap to qemu_send_packet() and qemu_sendv_packet_async().

2011-01-14 Thread Yoshiaki Tamura
event-tap function is called only when it is on. Signed-off-by: Yoshiaki Tamura --- net.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/net.c b/net.c index 9ba5be2..1176124 100644 --- a/net.c +++ b/net.c @@ -36,6 +36,7 @@ #include "qemu-common.h" #include "qe

[Qemu-devel] [PATCH 14/19] block: insert event-tap to bdrv_aio_writev() and bdrv_aio_flush().

2011-01-14 Thread Yoshiaki Tamura
event-tap function is called only when it is on, and requests sent from device emulators. Signed-off-by: Yoshiaki Tamura --- block.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index ff2795b..85bd8b8 100644 --- a/block.c +++ b/block.c @@

[Qemu-devel] Re: [fedora-virt] Fedora Virt status

2011-01-14 Thread Richard W.M. Jones
On Thu, Jan 13, 2011 at 08:27:17AM -0800, Boris Derzhavets wrote: > Windows 7 KVM install runs unbelievably fast on SL 6 ( alpha 3) vs F14 with > the > most recent libvirt stuff : Boris can you help me to parse this ... SL6 = Scientific Linux 6? And you're saying that Windows 7 is much faster o

[Qemu-devel] [PATCH 09/19] Introduce event-tap.

2011-01-14 Thread Yoshiaki Tamura
event-tap controls when to start FT transaction, and provides proxy functions to called from net/block devices. While FT transaction, it queues up net/block requests, and flush them when the transaction gets completed. Signed-off-by: Yoshiaki Tamura Signed-off-by: OHMURA Kei --- Makefile.targe

[Qemu-devel] [PATCH 11/19] ioport: insert event_tap_ioport() to ioport_write().

2011-01-14 Thread Yoshiaki Tamura
Record ioport event to replay it upon failover. Signed-off-by: Yoshiaki Tamura --- ioport.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/ioport.c b/ioport.c index aa4188a..74aebf5 100644 --- a/ioport.c +++ b/ioport.c @@ -27,6 +27,7 @@ #include "ioport.h" #include

[Qemu-devel] [PATCH 02/19] Introduce read() to FdMigrationState.

2011-01-14 Thread Yoshiaki Tamura
Currently FdMigrationState doesn't support read(), and this patch introduces it to get response from the other side. Signed-off-by: Yoshiaki Tamura --- migration-tcp.c | 15 +++ migration.c | 13 + migration.h |3 +++ 3 files changed, 31 insertions(+), 0 d

[Qemu-devel] [PATCH 18/19] Introduce -k option to enable FT migration mode (Kemari).

2011-01-14 Thread Yoshiaki Tamura
When -k option is set to migrate command, it will turn on ft_mode to start FT migration mode (Kemari). Signed-off-by: Yoshiaki Tamura --- hmp-commands.hx |7 --- migration.c |4 qmp-commands.hx |7 --- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/h

[Qemu-devel] [PATCH 08/19] savevm: introduce util functions to control ft_trans_file from savevm layer.

2011-01-14 Thread Yoshiaki Tamura
To utilize ft_trans_file function, savevm needs interfaces to be exported. Signed-off-by: Yoshiaki Tamura --- hw/hw.h |5 ++ savevm.c | 149 ++ 2 files changed, 154 insertions(+), 0 deletions(-) diff --git a/hw/hw.h b/hw/hw.h ind

[Qemu-devel] [PATCH 01/19] Make QEMUFile buf expandable, and introduce qemu_realloc_buffer() and qemu_clear_buffer().

2011-01-14 Thread Yoshiaki Tamura
Currently buf size is fixed at 32KB. It would be useful if it could be flexible. Signed-off-by: Yoshiaki Tamura --- hw/hw.h |2 ++ savevm.c | 20 +++- 2 files changed, 21 insertions(+), 1 deletions(-) diff --git a/hw/hw.h b/hw/hw.h index 163a683..a506688 100644 --- a/hw/

[Qemu-devel] [PATCH 04/19] qemu-char: export socket_set_nodelay().

2011-01-14 Thread Yoshiaki Tamura
Signed-off-by: Yoshiaki Tamura --- qemu-char.c |2 +- qemu_socket.h |1 + 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index edc9ad6..737d347 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -2116,7 +2116,7 @@ static void tcp_chr_telnet_init(int

[Qemu-devel] [PATCH 00/19] Kemari for KVM v0.2.5

2011-01-14 Thread Yoshiaki Tamura
Hi, This patch series is a revised version of Kemari for KVM, which applied comments for the previous post. The current code is based on qemu.git d03d11260ee2d55579e8b76116e35ccdf5031833. The changes from v0.2.4 -> v0.2.5 are: - fixed braces and trailing spaces by using Blue's checkpatch.pl (Bl

[Qemu-devel] [PATCH 15/19] savevm: introduce qemu_savevm_trans_{begin, commit}.

2011-01-14 Thread Yoshiaki Tamura
Introduce qemu_savevm_state_{begin,commit} to send the memory and device info together, while avoiding cancelling memory state tracking. Signed-off-by: Yoshiaki Tamura --- savevm.c | 93 ++ sysemu.h |2 + 2 files changed, 95 inser

[Qemu-devel] [PATCH 19/19] migration: add a parser to accept FT migration incoming mode.

2011-01-14 Thread Yoshiaki Tamura
The option looks like, -incoming ::,ft_mode Signed-off-by: Yoshiaki Tamura --- migration.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/migration.c b/migration.c index 11bbdf8..7275f02 100644 --- a/migration.c +++ b/migration.c @@ -45,6 +45,12 @@ int qemu_start_i

[Qemu-devel] [PATCH 03/19] Introduce skip_header parameter to qemu_loadvm_state().

2011-01-14 Thread Yoshiaki Tamura
Introduce skip_header parameter to qemu_loadvm_state() so that it can be called iteratively without reading the header. Signed-off-by: Yoshiaki Tamura --- migration.c |2 +- savevm.c| 24 +--- sysemu.h|2 +- 3 files changed, 15 insertions(+), 13 deletions(-)

[Qemu-devel] [PATCH 12/19] Insert event_tap_mmio() to cpu_physical_memory_rw() in exec.c.

2011-01-14 Thread Yoshiaki Tamura
Record mmio write event to replay it upon failover. Signed-off-by: Yoshiaki Tamura --- exec.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/exec.c b/exec.c index 49c28b1..4a171cc 100644 --- a/exec.c +++ b/exec.c @@ -33,6 +33,7 @@ #include "osdep.h" #include "kvm.h

[Qemu-devel] [PATCH 10/19] Call init handler of event-tap at main() in vl.c.

2011-01-14 Thread Yoshiaki Tamura
Signed-off-by: Yoshiaki Tamura --- vl.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/vl.c b/vl.c index 8bbb785..9faeb27 100644 --- a/vl.c +++ b/vl.c @@ -162,6 +162,7 @@ int main(int argc, char **argv) #include "qemu-queue.h" #include "cpus.h" #include "arch_init.h

[Qemu-devel] [PATCH 16/19] migration: introduce migrate_ft_trans_{put, get}_ready(), and modify migrate_fd_put_ready() when ft_mode is on.

2011-01-14 Thread Yoshiaki Tamura
Introduce migrate_ft_trans_put_ready() which kicks the FT transaction cycle. When ft_mode is on, migrate_fd_put_ready() would open ft_trans_file and turn on event_tap. To end or cancel FT transaction, ft_mode and event_tap is turned off. migrate_ft_trans_get_ready() is called to receive ack from

[Qemu-devel] [PATCH 06/19] virtio: decrement last_avail_idx with inuse before saving.

2011-01-14 Thread Yoshiaki Tamura
For regular migration inuse == 0 always as requests are flushed before save. However, event-tap log when enabled introduces an extra queue for requests which is not being flushed, thus the last inuse requests are left in the event-tap queue. Move the last_avail_idx value sent to the remote back to

Re: [Qemu-devel] [PATCH 15/19] savevm: introduce qemu_savevm_trans_{begin, commit}.

2011-01-14 Thread Yoshiaki Tamura
2011/1/14 Blue Swirl : > On Thu, Jan 13, 2011 at 5:15 PM, Yoshiaki Tamura > wrote: >> Introduce qemu_savevm_state_{begin,commit} to send the memory and >> device info together, while avoiding cancelling memory state tracking. >> >> Signed-off-by: Yoshiaki Tamura >> --- >>  savevm.c |   88 >> +++

Re: [Qemu-devel] paravirtual mouse/tablet

2011-01-14 Thread Peter Maydell
On 14 January 2011 09:37, Anthony Liguori wrote: [multitouch] > Surely, evdev has an interface to support this already.  Let's just do what > it does instead of inventing something that none of us can validate actually > works. > > Or better yet, delay implementing it until someone actually knows

[Qemu-devel] Re: [RFC][PATCH 1/2] qcow2: Add QcowCache

2011-01-14 Thread Stefan Hajnoczi
On Fri, Jan 14, 2011 at 3:22 PM, Kevin Wolf wrote: > Am 14.01.2011 15:36, schrieb Stefan Hajnoczi: >> On Mon, Jan 10, 2011 at 4:53 PM, Kevin Wolf wrote: >>> +    for (i = 0; i < c->size; i++) { >>> +        c->entries[i].table = qemu_blockalign(bs, s->cluster_size); >>> +    } >> >> These could b

[Qemu-devel] paravirtual tablet v3

2011-01-14 Thread Gerd Hoffmann
Hi, Now v3 featuring multitouch ;) cheers, Gerd #ifndef __QEMU_PVTABLET__ #define __QEMU_PVTABLET__ 1 /* * qemu patavirtual tablet interface */ #include /* * our virtio-serial channel name(s) */ #define QEMU_PVTABLET_FORMAT "org.qemu.pvtablet.%d" enum qemu_pvtablet_type { QEMU_P

Re: [Qemu-devel] paravirtual mouse/tablet

2011-01-14 Thread Alexander Graf
On 14.01.2011, at 17:31, Gerd Hoffmann wrote: > Hi, > For a simple tablet pressure and index would just be 0. >>> >>> For a simple tablet pressure would be MAX and index would be 0. But yes, I >>> like the idea :). >> >> 0 for non-presses of course :). Sorry > > Right ;) > > There are

[Qemu-devel] Re: [PATCH 3/7] usb hid: move head+n to common struct

2011-01-14 Thread Paolo Bonzini
On 01/14/2011 12:55 PM, Gerd Hoffmann wrote: This patch moves the 'head' and 'n' fields from USBMouseState and USBKeyboardState to the common USBHIDState struct. Signed-off-by: Gerd Hoffmann --- hw/usb-hid.c | 46 ++ 1 files changed, 22 insertions

Re: [Qemu-devel] paravirtual mouse/tablet

2011-01-14 Thread Gerd Hoffmann
Hi, I guess a mere tuple of (x,y,down) N times should be enough for the protocol, no? Surely, evdev has an interface to support this already. Let's just do what it does instead of inventing something that none of us can validate actually works. http://www.mjmwired.net/kernel/Documentation/

Re: [Qemu-devel] paravirtual mouse/tablet

2011-01-14 Thread Gerd Hoffmann
Hi, For a simple tablet pressure and index would just be 0. For a simple tablet pressure would be MAX and index would be 0. But yes, I like the idea :). 0 for non-presses of course :). Sorry Right ;) There are three cases: (1) no pressure supported (i.e. your mouse moving around in th

[Qemu-devel] Re: [PATCH 2/7] usb keyboard: add event event queue

2011-01-14 Thread Paolo Bonzini
On 01/14/2011 12:55 PM, Gerd Hoffmann wrote: This patch adds a event queue to the usb keyboard. This makes sure the guest will see all key events even if they come in bursts. With this patch applied sending Ctrl-Alt-Del using vncviewer's F8 menu works. Also with autosuspend enabled the first ke

[Qemu-devel] [PATCH 3/3] virtio-blk: tell the guest about size changes

2011-01-14 Thread Christoph Hellwig
Raise a config change interrupt when the size changed. This allows virtio-blk guest drivers to read-read the information from the config space once it got the config chaged interrupt. Signed-off-by: Christoph Hellwig Index: qemu/hw/virtio-blk.c ==

[Qemu-devel] [PATCH 2/3] block: tell drivers about an image resize

2011-01-14 Thread Christoph Hellwig
Add a new size_changed flag in the BlockDriverState and call the change_cb callback to notify drivers about a size change. Signed-off-by: Christoph Hellwig Index: qemu/block.c === --- qemu.orig/block.c 2011-01-14 17:05:49.52700336

[Qemu-devel] [PATCH 1/3] block: add resize monitor command

2011-01-14 Thread Christoph Hellwig
Add a monitor command that allows resizing of block devices while qemu is running. It uses the existing bdrv_truncate method already used by qemu-img to do it's work. Compared to qemu-img the size parsing is very simplicistic, but I think having a properly numering object is more useful for non-h

[Qemu-devel] [PATCH 0/3] allow online resizing of block devices

2011-01-14 Thread Christoph Hellwig
This patchset adds support for online resizing of block devices. The first patch adds a new resize monitor command which call into the existing image resize code. This is the meat of the series and probably needs quite a bit of review and help as I'm not sure about how to implement the error hand

Re: [Spice-devel] [Qemu-devel] Re: paravirtual mouse/tablet

2011-01-14 Thread Alon Levy
On Fri, Jan 14, 2011 at 02:52:35PM +, Daniel P. Berrange wrote: > On Fri, Jan 14, 2011 at 04:28:52PM +0200, Alon Levy wrote: > > On Fri, Jan 14, 2011 at 10:48:50AM +, Daniel P. Berrange wrote: > > > On Fri, Jan 14, 2011 at 09:49:40AM +0100, Gerd Hoffmann wrote: > > > > >>>That maybe implies

  1   2   >