[PATCH 1/5] kvm_io_device: extend in_range() to manage len and write attribute

2008-05-23 Thread Laurent Vivier
Modify member in_range() of structure kvm_io_device to pass length and the type of the I/O (write or read). This modification allows to use kvm_io_device with MMIO batching. Signed-off-by: Laurent Vivier [EMAIL PROTECTED] --- arch/ia64/kvm/kvm-ia64.c |6 +++--- arch/x86/kvm/i8254.c

[PATCH 3/7] libkvm: delayed MMIO support (powerpc part)

2008-05-23 Thread Laurent Vivier
This patch enables MMIO batching for powerpc architecture. WARNING: this has not been tested. Signed-off-by: Laurent Vivier [EMAIL PROTECTED] --- libkvm/libkvm-powerpc.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/libkvm/libkvm-powerpc.c b/libkvm/libkvm

[PATCH 0/5] kvm: Batch writes to MMIO

2008-05-23 Thread Laurent Vivier
. [PATCH 5/5] Add delayed MMIO support (ia64 part) This patch enables MMIO batching for ia64 architecture. WARNING: this has not been tested. Signed-off-by: Laurent Vivier [EMAIL PROTECTED] -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message

[PATCH 1/5] kvm_io_device: extend in_range() to manage len and write attribute

2008-05-30 Thread Laurent Vivier
Modify member in_range() of structure kvm_io_device to pass length and the type of the I/O (write or read). This modification allows to use kvm_io_device with coalesced MMIO. Signed-off-by: Laurent Vivier [EMAIL PROTECTED] --- arch/ia64/kvm/kvm-ia64.c |6 +++--- arch/x86/kvm/i8254.c

[PATCH 2/5] Add coalesced MMIO support (common part)

2008-05-30 Thread Laurent Vivier
of the start of th kvm_run structure. The MMIO ring buffer is defined by the structure kvm_coalesced_mmio_ring. Signed-off-by: Laurent Vivier [EMAIL PROTECTED] --- include/linux/kvm.h | 29 include/linux/kvm_host.h |4 + virt/kvm/coalesced_mmio.c | 156

[PATCH 3/5] Add coalesced MMIO support (x86 part)

2008-05-30 Thread Laurent Vivier
This patch enables coalesced MMIO for x86 architecture. It defines KVM_MMIO_PAGE_OFFSET and KVM_CAP_COALESCED_MMIO. It enables the compilation of coalesced_mmio.c. Signed-off-by: Laurent Vivier [EMAIL PROTECTED] --- arch/x86/kvm/Makefile |3 ++- arch/x86/kvm/x86.c |3

[PATCH 4/5] Add coalesced MMIO support (powerpc part)

2008-05-30 Thread Laurent Vivier
This patch enables coalesced MMIO for powerpc architecture. It defines KVM_MMIO_PAGE_OFFSET and KVM_CAP_COALESCED_MMIO. It enables the compilation of coalesced_mmio.c. WARNING: this has not been tested. Signed-off-by: Laurent Vivier [EMAIL PROTECTED] --- arch/powerpc/kvm/Makefile |2

[PATCH 0/5] kvm: Batch writes to MMIO

2008-05-30 Thread Laurent Vivier
. WARNING: this has not been tested. [PATCH 5/5] Add coalesced MMIO support (ia64 part) This patch enables coalesced MMIO for ia64 architecture. WARNING: this has not been tested. Signed-off-by: Laurent Vivier [EMAIL PROTECTED] -- To unsubscribe from this list: send the line unsubscribe

[PATCH 5/5] Add coalesced MMIO support (ia64 part)

2008-05-30 Thread Laurent Vivier
This patch enables coalesced MMIO for ia64 architecture. It defines KVM_MMIO_PAGE_OFFSET and KVM_CAP_COALESCED_MMIO. It enables the compilation of coalesced_mmio.c. WARNING: this has not been tested. Signed-off-by: Laurent Vivier [EMAIL PROTECTED] --- arch/ia64/kvm/Makefile |3

[PATCH 1/7] libkvm: coalesced MMIO support (common part)

2008-05-30 Thread Laurent Vivier
() to register a coalesced MMIO zone, and kvm_unregister_coalesced_mmio() to unregister it. Signed-off-by: Laurent Vivier [EMAIL PROTECTED] --- libkvm/kvm-common.h |2 + libkvm/libkvm.c | 75 +++ libkvm/libkvm.h |4 +++ 3 files

[PATCH 2/7] libkvm: coalesced MMIO support (x86 part)

2008-05-30 Thread Laurent Vivier
This patch enables coalesced MMIO for x86 architecture. Signed-off-by: Laurent Vivier [EMAIL PROTECTED] --- libkvm/kvm-x86.h|2 ++ libkvm/libkvm-x86.c |4 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/libkvm/kvm-x86.h b/libkvm/kvm-x86.h index 1dccf64..e988cb7

[PATCH 4/7] libkvm: coalesced support (ia64 part)

2008-05-30 Thread Laurent Vivier
This patch enables coalesced MMIO for ia64 architecture. WARNING: this has not been tested. Signed-off-by: Laurent Vivier [EMAIL PROTECTED] --- libkvm/kvm-ia64.h|3 +++ libkvm/libkvm-ia64.c |6 ++ 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/libkvm/kvm-ia64.h b

[PATCH] Add virtio-net driver

2008-06-10 Thread Laurent Vivier
This patch allows to boot from network using the virtio-net adapter provided by KVM. It applies on etherboot-5.4 sources from git://git.etherboot.org/scm/etherboot.git [why etherboot-5.4 ? because it doesn't hang like gPXE and ROM size is only 32 KB] Signed-off-by: Laurent Vivier [EMAIL

[PATCH] [v2] etherboot: add virtio-net driver

2008-06-13 Thread Laurent Vivier
This patch allows to boot from network using the virtio-net adapter provided by KVM. It applies on etherboot-5.4 sources from git://git.etherboot.org/scm/etherboot.git Changelog: v2: Clear ISR on reset, some cosmetic changes, implement virtnet_irq(). Signed-off-by: Laurent Vivier [EMAIL

Re: [ kvm-Bugs-1985977 ] Guests crash while rebooting

2008-06-14 Thread Laurent Vivier
Le samedi 14 juin 2008 à 11:58 -0700, Avi Kivity a écrit : Yunfeng Zhao wrote: Date: 2008-06-12 16:26 Message: Logged In: YES user_id=539971 Originator: NO Okay, I reverted the patch. Avi, The issue still exists on our nightly testing machine even after reverted the

Re: [PATCH] libkvm: export init for coalesced MMIO support

2008-06-18 Thread Laurent Vivier
Le mercredi 18 juin 2008 à 00:22 -0500, Carlo Marcelo Arenas Belon a écrit : complement 2680f3df932a3119880a692609943587ecc8f409 to export the definition for kvm_init_coalesced_mmio as it is used by the per arch libkvm as shown by the following warning : libkvm-x86.c: In function

Re: [ROM][v2] virtio-net etherboot ROM

2008-06-19 Thread Laurent Vivier
Le mercredi 18 juin 2008 à 06:26 -0700, Avi Kivity a écrit : Laurent Vivier wrote: This new version of virtio-net etherboot ROM clears the ISR on reset, and thus allows linux to use it again (on Qemu/KVM). What's the status of upstreaming this? Didn't see it on etherboot.git. I have

Re: [PATCH] Use qemu_memalign instead of qemu_malloc

2008-06-25 Thread Laurent Vivier
Le mercredi 25 juin 2008 à 16:15 +0200, Kevin Wolf a écrit : Anthony Liguori schrieb: Kevin Wolf wrote: Anthony Liguori schrieb: I guess the main block code is not as defensive as I thought it was. This patch uses qemu_memalign to allocate the buffers for IO so that you don't get

Re: Failure to boot CDROM with -drive arg

2008-07-08 Thread Laurent Vivier
Le mardi 08 juillet 2008 à 09:37 +0100, Daniel P. Berrange a écrit : The following two command lines should be identical from the user's point of view: # qemu-kvm -cdrom /home/berrange/boot.iso -boot d -m 500 # qemu-kvm -drive

Re: KVM Test result, kernel a81a686.., userspace 619ca34..

2008-07-08 Thread Laurent Vivier
Le mardi 08 juillet 2008 à 16:58 +0800, Xu, Jiajun a écrit : Hi All, This is today's KVM test result against kvm.git a81a686682d6f04c842ebf9e084e30cd875f1048 and kvm-userspace.git 619ca34310a8968b6939fa6aba5b85a16b20315e. There's no new issue today. Three Old Issues:

Re: Failure to boot CDROM with -drive arg

2008-07-08 Thread Laurent Vivier
Le mardi 08 juillet 2008 à 11:17 +0200, Soren Hansen a écrit : On Tue, Jul 08, 2008 at 09:37:30AM +0100, Daniel P. Berrange wrote: The following two command lines should be identical from the user's point of view: # qemu-kvm -cdrom /home/berrange/boot.iso -boot d -m 500 # qemu-kvm

Re: Failure to boot CDROM with -drive arg

2008-07-08 Thread Laurent Vivier
Le mardi 08 juillet 2008 à 10:21 +0100, Daniel P. Berrange a écrit : On Tue, Jul 08, 2008 at 11:17:24AM +0200, Soren Hansen wrote: On Tue, Jul 08, 2008 at 09:37:30AM +0100, Daniel P. Berrange wrote: The following two command lines should be identical from the user's point of view:

Re: Failure to boot CDROM with -drive arg

2008-07-08 Thread Laurent Vivier
Le mardi 08 juillet 2008 à 08:01 -0500, Anthony Liguori a écrit : Daniel P. Berrange wrote: On Tue, Jul 08, 2008 at 11:17:24AM +0200, Soren Hansen wrote: On Tue, Jul 08, 2008 at 09:37:30AM +0100, Daniel P. Berrange wrote: The following two command lines should be identical from

Re: [ROM][v2] virtio-net etherboot ROM

2008-08-04 Thread Laurent Vivier
Le mercredi 18 juin 2008 à 06:26 -0700, Avi Kivity a écrit : Laurent Vivier wrote: This new version of virtio-net etherboot ROM clears the ISR on reset, and thus allows linux to use it again (on Qemu/KVM). What's the status of upstreaming this? Didn't see it on etherboot.git. Virtio

[PATCH] Clear temporary interrupt blocking on halt in real mode

2008-08-05 Thread Laurent Vivier
interrupts are not delivered to increase %fs:(0x6c): movl%fs:(0x6c), %eax 1: pushf sti hlt popf cmpl%fs:(0x6c), %eax je 1b This patch clears the interruptibility state when halt is emulated in real mode. Signed-off-by: Laurent Vivier

Re: [PATCH] Clear temporary interrupt blocking on halt in real mode

2008-09-04 Thread Laurent Vivier
Le dimanche 10 août 2008 à 11:36 +0300, Avi Kivity a écrit : Laurent Vivier wrote: When halt is emulated, skip_emulated_instruction() is called and interruptibility state is cleared. But when halt is emulated in real mode, skip_emulated_instruction() is not called

Re: tape support

2008-09-13 Thread Laurent Vivier
Le samedi 13 septembre 2008 à 07:51 +0300, Avi Kivity a écrit : Laurent Vivier wrote: Le jeudi 11 septembre 2008 à 12:54 +0200, Dietmar Maurer a écrit : Is there a way to use a scsi tape? I tried -drive file=/dev/sg0, but that does not work (eject, rewind works, but read/write fails

Re: [PATCH] KVM: Device Assignment with VT-d

2008-09-16 Thread Laurent Vivier
Le mardi 16 septembre 2008 à 00:58 +, Avi Kivity a écrit : From: Ben-Ami Yassour [EMAIL PROTECTED] Based on a patch by: Kay, Allen M [EMAIL PROTECTED] This patch enables PCI device assignment based on VT-d support. When a device is assigned to the guest, the guest memory is pinned and

Re: Windows 2003, virtio Ethernet and USB - Strange Interaction

2008-09-30 Thread Laurent Vivier
Le mardi 30 septembre 2008 à 10:41 +0200, Sven Rudolph a écrit : Hello, I have an (as far as I understand it) complex problem. I just got some good debugging hints, so I tried some more things and reproduced the problem with recent KVM. I tested it now with kvm-76 (both kernel and

[PATCH][BIOS] Fill IPL table according discovered ATA drives

2008-12-05 Thread Laurent Vivier
This patch shows in boot menu only available devices. This patch has been tested with Bochs BIOS version from the KVM source tree. Signed-off-by: Laurent Vivier [EMAIL PROTECTED] --- bios/rombios.c | 54 +- 1 files changed, 37 insertions

[PATCH][BIOS][v2] Fill IPL table according discovered ATA drives

2008-12-08 Thread Laurent Vivier
This patch shows in boot menu only available devices. This patch has been tested with Bochs BIOS version from the KVM source tree. Signed-off-by: Laurent Vivier [EMAIL PROTECTED] --- bios/rombios.c | 49 ++--- 1 files changed, 38 insertions(+), 11

[PATCH][BIOS][v2] Add BCV option rom in boot menu

2008-12-08 Thread Laurent Vivier
ROM modified to be a BCV one. Signed-off-by: Laurent Vivier [EMAIL PROTECTED] --- bios/rombios.c | 75 ++- 1 files changed, 68 insertions(+), 7 deletions(-) diff --git a/bios/rombios.c b/bios/rombios.c index 9a1cdd6..e0a419f 100644 --- a/bios

[PATCH 2/3] [BIOS] Add splash image support

2008-12-16 Thread Laurent Vivier
This patch adds Qemu firmware configuration device interface to display a splash image at BIOS startup. Idea and some parts of code are stollen from VirtualBox. Signed-off-by: Laurent Vivier laurent.viv...@bull.net --- bios/Makefile |4 +- bios/logo.c| 206

[PATCH 1/3] Correct fw_cfg_add_callback()

2008-12-16 Thread Laurent Vivier
This patch is needed to be able to register firmware configuration device callback. It is already included in qemu as commit r5978. Signed-off-by: Laurent Vivier laurent.viv...@bull.net --- qemu/hw/fw_cfg.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/qemu/hw

[PATCH 3/3] [QEMU] Add BIOS splash image

2008-12-16 Thread Laurent Vivier
the image can be also given (in seconds). Signed-off-by: Laurent Vivier laurent.viv...@bull.net --- qemu/Makefile.target |2 +- qemu/configure| 19 +++ qemu/hw/bootmenu_pixmap.h | 231 + qemu/hw/fw_cfg.h |1 + qemu/hw/pc.c

Re: [Qemu-devel] [PATCH 0/3] Add BIOS splash image support

2008-12-16 Thread Laurent Vivier
Le mardi 16 décembre 2008 à 22:46 +0200, Blue Swirl a écrit : On 12/16/08, Anthony Liguori anth...@codemonkey.ws wrote: Blue Swirl wrote: The control channel may still be needed. Alternatively the BIOS could load the image and fade parameters from a new ROM or from the

Re: [Qemu-devel] [PATCH 0/3] Add BIOS splash image support

2008-12-17 Thread Laurent Vivier
Le mercredi 17 décembre 2008 à 01:10 +0100, Carl-Daniel Hailfinger a écrit : On 16.12.2008 22:51, Laurent Vivier wrote: Le mardi 16 décembre 2008 à 22:46 +0200, Blue Swirl a écrit : On 12/16/08, Anthony Liguori anth...@codemonkey.ws wrote: Blue Swirl wrote

Re: [Bochs-developers] [PATCH 0/3] Add BIOS splash image support

2008-12-17 Thread Laurent Vivier
Le mercredi 17 décembre 2008 à 22:58 +0100, Sebastian Herbszt a écrit : Laurent Vivier wrote: This series of patches adds a nice BIOS startup splash screen. It adds a -splash option allowing to specify the picture file name (a 640x480 (or less) and true color PNG) to display. You can

[PATCH 0/2][v2] Add BIOS splash image support

2008-12-18 Thread Laurent Vivier
This series of patches adds a nice BIOS startup splash screen. It adds a -splash option allowing to specify the picture file name (a 640x480 (or less) and true color PNG) to display. You can enable/disable a fade in, fade out and the bootmenu. The time to display the image can be also given (in

[PATCH 1/2][v2][BIOS] Add splash image support

2008-12-18 Thread Laurent Vivier
This patch adds Qemu firmware configuration device interface to display a splash image at BIOS startup. Idea stollen from VirtualBox. Signed-off-by: Laurent Vivier laurent.viv...@bull.net --- bios/Makefile |4 +- bios/rombios.c | 142

[PATCH 2/2][v2][QEMU] Add BIOS splash image

2008-12-18 Thread Laurent Vivier
the image can be also given (in seconds). Signed-off-by: Laurent Vivier laurent.viv...@bull.net --- qemu/Makefile.target |5 +- qemu/configure | 19 +++ qemu/hw/fw_cfg.h |1 + qemu/hw/pc.c | 11 ++- qemu/hw/press_f12.h | 231

Re: [PATCH 0/2] KVM: PPC: Book3S HV: Dynamic micro-threading/split-core

2015-06-22 Thread Laurent Vivier
On 22/06/2015 02:09, Paul Mackerras wrote: On Wed, Jun 17, 2015 at 07:30:09PM +0200, Laurent Vivier wrote: Tested-by: Laurent Vivier lviv...@redhat.com Performance is better, but Paul could you explain why it is better if I disable dynamic micro-threading ? Did I miss something ? My

Re: [PATCH 0/2] KVM: PPC: Book3S HV: Dynamic micro-threading/split-core

2015-06-17 Thread Laurent Vivier
| 4 +- arch/powerpc/kvm/book3s_hv_rmhandlers.S | 111 - 7 files changed, 740 insertions(+), 106 deletions(-) Tested-by: Laurent Vivier lviv...@redhat.com Performance is better, but Paul could you explain why it is better if I disable dynamic micro-threading ? Did I miss something

Re: [PATCH 0/2] Two fixes for dynamic micro-threading

2015-07-24 Thread Laurent Vivier
On 23/07/2015 14:02, Alexander Graf wrote: On 20.07.15 08:49, David Gibson wrote: On Thu, Jul 16, 2015 at 05:11:12PM +1000, Paul Mackerras wrote: This series contains two fixes for the new dynamic micro-threading code that was added recently for HV-mode KVM on Power servers. The patches

Re: [PATCH 0/2] Two fixes for dynamic micro-threading

2015-07-16 Thread Laurent Vivier
+--- 1 file changed, 9 insertions(+), 3 deletions(-) Tested-by: Laurent Vivier lviv...@redhat.com [this series has corrected a host kernel crash when CPU are overcommitted] -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord

Re: [PATCH] KVM: Add Kconfig option to signal cross-endian guests

2015-07-09 Thread Laurent Vivier
On 09/07/2015 09:49, Thomas Huth wrote: The option for supporting cross-endianness legacy guests in the vhost and tun code should only be available on systems that support cross-endian guests. I'm sure I misunderstand something, but what happens if we use QEMU with TCG instead of KVM, i.e. a

Re: [PATCH] KVM: PPC: Fix emulation of H_SET_DABR/X on POWER8

2015-11-20 Thread Laurent Vivier
> clrrdi r4, r4, 3 > std r4, VCPU_DAWR(r3) > std r5, VCPU_DAWRX(r3) > Nice catch. Reviewed-by: Laurent Vivier <lviv...@redhat.com> -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 0/2] KVM: PPC: Book3S HV: Dynamic micro-threading/split-core

2015-06-22 Thread Laurent Vivier
On 22/06/2015 02:09, Paul Mackerras wrote: On Wed, Jun 17, 2015 at 07:30:09PM +0200, Laurent Vivier wrote: Tested-by: Laurent Vivier lviv...@redhat.com Performance is better, but Paul could you explain why it is better if I disable dynamic micro-threading ? Did I miss something ? My

Re: [PATCH 0/2] KVM: PPC: Book3S HV: Dynamic micro-threading/split-core

2015-06-17 Thread Laurent Vivier
| 4 +- arch/powerpc/kvm/book3s_hv_rmhandlers.S | 111 - 7 files changed, 740 insertions(+), 106 deletions(-) Tested-by: Laurent Vivier lviv...@redhat.com Performance is better, but Paul could you explain why it is better if I disable dynamic micro-threading ? Did I miss something

Re: [PATCH v3 1/1] KVM: PPC: Book3S: correct width in XER handling

2015-08-06 Thread Laurent Vivier
Hi, I'd also like to see this patch in the mainstream as it fixes a bug appearing when we switch from vCPU context to hypervisor context (guest crash). Laurent On 06/08/2015 03:25, Sam Bobroff wrote: Ping? I think I've addressed all the comments in this version. Is there anything else I

Re: [PATCH 0/2] Two fixes for dynamic micro-threading

2015-07-24 Thread Laurent Vivier
On 23/07/2015 14:02, Alexander Graf wrote: On 20.07.15 08:49, David Gibson wrote: On Thu, Jul 16, 2015 at 05:11:12PM +1000, Paul Mackerras wrote: This series contains two fixes for the new dynamic micro-threading code that was added recently for HV-mode KVM on Power servers. The patches

Re: [PATCH 0/2] Two fixes for dynamic micro-threading

2015-07-16 Thread Laurent Vivier
+--- 1 file changed, 9 insertions(+), 3 deletions(-) Tested-by: Laurent Vivier lviv...@redhat.com [this series has corrected a host kernel crash when CPU are overcommitted] -- To unsubscribe from this list: send the line unsubscribe kvm-ppc in the body of a message to majord

Re: [PATCH v3 1/1] KVM: PPC: Book3S: correct width in XER handling

2015-07-16 Thread Laurent Vivier
) PPC_STL r6, SVCPU_FAULT_DAR(r13) stw r7, SVCPU_FAULT_DSISR(r13) PPC_STL r8, SVCPU_CTR(r13) Reviewed-by: Laurent Vivier lviv...@redhat.com -- To unsubscribe from this list: send the line unsubscribe kvm-ppc in the body of a message to majord...@vger.kernel.org More majordomo info

Re: [PATCH] KVM: Add Kconfig option to signal cross-endian guests

2015-07-09 Thread Laurent Vivier
On 09/07/2015 09:49, Thomas Huth wrote: The option for supporting cross-endianness legacy guests in the vhost and tun code should only be available on systems that support cross-endian guests. I'm sure I misunderstand something, but what happens if we use QEMU with TCG instead of KVM, i.e. a

Re: [PATCH] KVM: PPC: Fix emulation of H_SET_DABR/X on POWER8

2015-11-20 Thread Laurent Vivier
> clrrdi r4, r4, 3 > std r4, VCPU_DAWR(r3) > std r5, VCPU_DAWRX(r3) > Nice catch. Reviewed-by: Laurent Vivier <lviv...@redhat.com> -- To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html