Re: [PATCH 7/8] KVM: Optimize kvm_read_cr[04]_bits()

2010-02-05 Thread Jan Kiszka
Avi Kivity wrote: 'mask' is always a constant, so we can check whether it includes a bit that might be owned by the guest very cheaply, and avoid the decache call. Saves a few hundred bytes of module text. -no-kvm-irqchip -smp 2 is broken for my Linux guests since this commit. Their user

[PATCH RFC: not fully tested yet] Fix the x86 emulation of in: remove redandancy

2010-02-05 Thread Takuya Yoshikawa
Fix the x86 emulation of in: kvm_emulate_pio() and complete_pio() both read out the RAX register value and copy it to a place into which the value read out from the port will be copied later. This patch removes this redundancy. /*** snippet from arch/x86/kvm/x86.c ***/ int complete_pio(struct

Re: KVM-kmod upstream built on a fully updated F12 box cannot be loaded

2010-02-05 Thread Jan Kiszka
Lucas Meneghel Rodrigues wrote: Hi folks: Today's upstream test couldn't go further due to a problem trying to load the module built with kvm-kmod: TestFail: Failed to load KVM modules: Command insmod /usr/local/autotest/tests/kvm/src/kvm_kmod/x86/kvm.ko failed, rc=1, Command returned

Re: KVM-kmod upstream built on a fully updated F12 box cannot be loaded

2010-02-05 Thread Lucas Meneghel Rodrigues
On Fri, 2010-02-05 at 10:25 +0100, Jan Kiszka wrote: Lucas Meneghel Rodrigues wrote: Hi folks: Today's upstream test couldn't go further due to a problem trying to load the module built with kvm-kmod: TestFail: Failed to load KVM modules: Command insmod

Re: KVM-kmod upstream built on a fully updated F12 box cannot be loaded

2010-02-05 Thread Jan Kiszka
Lucas Meneghel Rodrigues wrote: On Fri, 2010-02-05 at 10:25 +0100, Jan Kiszka wrote: Lucas Meneghel Rodrigues wrote: Hi folks: Today's upstream test couldn't go further due to a problem trying to load the module built with kvm-kmod: TestFail: Failed to load KVM modules: Command insmod

[PATCH] qemu-kvm: Speed up of the dirty-bitmap-traveling

2010-02-05 Thread OHMURA Kei
dirty-bitmap-traveling is carried out by byte size in qemu-kvm.c. But We think that dirty-bitmap-traveling by long size is faster than by byte size especially when most of memory is not dirty. Signed-off-by: OHMURA Kei ohmura@lab.ntt.co.jp --- qemu-kvm.c | 49

Re: [PATCH 06/11] kvm: Change kvm_iommu_map_pages to map large pages

2010-02-05 Thread Joerg Roedel
Hi Marcelo, Avi, On Mon, Feb 01, 2010 at 05:30:17PM -0200, Marcelo Tosatti wrote: On Mon, Feb 01, 2010 at 03:18:04PM +0100, Joerg Roedel wrote: On Fri, Jan 29, 2010 at 10:32:33AM +0100, Joerg Roedel wrote: On Thu, Jan 28, 2010 at 08:24:55PM -0200, Marcelo Tosatti wrote: On Thu, Jan 28,

Re: [PATCH 04/11 v2] VT-d: Change {un}map_range functions to implement {un}map interface

2010-02-05 Thread Joerg Roedel
Hi David, On Mon, Feb 01, 2010 at 03:16:46PM +0100, Joerg Roedel wrote: On Fri, Jan 29, 2010 at 10:05:26AM +0100, Joerg Roedel wrote: Um, that's not a page-size based interface. Page size isn't always 4KiB; this code runs on IA64 too. We have enough fun with CPU vs. DMA page size on

[PATCH] KVM test: Ensure multiple pre/post commands can run

2010-02-05 Thread Lucas Meneghel Rodrigues
The way tests are currently defined, running unattended install + hugepages will allways skip unattended install setup step (coincidentally the tests on our test farm were working because previous executions of the unattended install script ran, leaving the environment prepared for unattended

Re: [PATCH] qemu-kvm: Speed up of the dirty-bitmap-traveling

2010-02-05 Thread Jan Kiszka
OHMURA Kei wrote: dirty-bitmap-traveling is carried out by byte size in qemu-kvm.c. But We think that dirty-bitmap-traveling by long size is faster than by byte size especially when most of memory is not dirty. Sounds logical - do you have numbers on the improvement? Would be great if you

Re: Passthrough PCI video capture card

2010-02-05 Thread Kenni Lund
2010/2/5 Ameya Pandit cont...@ameyapandit.com: SNIP Please find below logs for more information. I want to passthrough this PCI card to one of the VM. Any suggestions how to do this? You need to have a system with IOMMU support, eg. Intel VT-d or AMD I/O Virtualization Technology (IOMMU).

Re: Seabios incompatible with Linux 2.6.26 host?

2010-02-05 Thread Pierre Riteau
On 4 févr. 2010, at 15:34, Pierre Riteau wrote: Hello, I'm having trouble running the latest qemu-kvm code on Debian Lenny (Linux 2.6.26). qemu-kvm dies with an error like this one: exception 13 (0) rax 0010 rbx 8c00 rcx 6ebe rdx 000c8c00 rsi

Re: Seabios incompatible with Linux 2.6.26 host?

2010-02-05 Thread Jan Kiszka
Pierre Riteau wrote: On 4 févr. 2010, at 15:34, Pierre Riteau wrote: Hello, I'm having trouble running the latest qemu-kvm code on Debian Lenny (Linux 2.6.26). qemu-kvm dies with an error like this one: exception 13 (0) rax 0010 rbx 8c00 rcx 6ebe rdx

Re: Seabios incompatible with Linux 2.6.26 host?

2010-02-05 Thread Pierre Riteau
On 5 févr. 2010, at 15:46, Jan Kiszka wrote: Pierre Riteau wrote: On 4 févr. 2010, at 15:34, Pierre Riteau wrote: Hello, I'm having trouble running the latest qemu-kvm code on Debian Lenny (Linux 2.6.26). qemu-kvm dies with an error like this one: exception 13 (0) rax 0010

Re: Seabios incompatible with Linux 2.6.26 host?

2010-02-05 Thread Jan Kiszka
Pierre Riteau wrote: On 5 févr. 2010, at 15:46, Jan Kiszka wrote: Pierre Riteau wrote: On 4 févr. 2010, at 15:34, Pierre Riteau wrote: Hello, I'm having trouble running the latest qemu-kvm code on Debian Lenny (Linux 2.6.26). qemu-kvm dies with an error like this one: exception 13 (0)

Re: Seabios incompatible with Linux 2.6.26 host?

2010-02-05 Thread Christoph Hellwig
On Thu, Feb 04, 2010 at 03:34:24PM +0100, Pierre Riteau wrote: I think I traced back the issue to the switch from Bochs BIOS to Seabios. By forcing the usage of Bochs BIOS 5f08bb45861f54be478b25075b90d2406a0f8bb3 works, while it dies without the -bios override. Unfortunately, newer versions

[PATCH] KVM: tests_base.cfg: major guest OS cleanup

2010-02-05 Thread Lucas Meneghel Rodrigues
Major update and cleanup on guest OS definition: * Fedora 8, 9, 10 dropped * RHEL versions bumped to the latest stable versions * Windows 2008, Vista and 7 bumped to the last versions * Some duplicate information re-organized Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com ---

Re: Seabios incompatible with Linux 2.6.26 host?

2010-02-05 Thread Jan Kiszka
Christoph Hellwig wrote: On Thu, Feb 04, 2010 at 03:34:24PM +0100, Pierre Riteau wrote: I think I traced back the issue to the switch from Bochs BIOS to Seabios. By forcing the usage of Bochs BIOS 5f08bb45861f54be478b25075b90d2406a0f8bb3 works, while it dies without the -bios override.

Re: [PATCH] emulate accessed bit for EPT

2010-02-05 Thread Marcelo Tosatti
On Thu, Feb 04, 2010 at 06:47:15PM +0100, Andrea Arcangeli wrote: On Thu, Feb 04, 2010 at 08:40:43AM -0500, Rik van Riel wrote: I suspect it won't be very many. I have been monitoring /proc/meminfo on my system while testing this patch, and it is quite typical that the size of the inactive

Re: [PATCH] emulate accessed bit for EPT

2010-02-05 Thread Andrea Arcangeli
On Fri, Feb 05, 2010 at 03:34:23PM -0200, Marcelo Tosatti wrote: But perhaps a module parameter to turn accessed bit emulation off might be handy in the future? Maybe, but somebody should show that this can overall become a downside, which I doubt... I think if it does, the VM is to blame for