Re: KVM internal error with some amounts of guest memory

2012-06-17 Thread Avi Kivity
On 06/14/2012 11:06 PM, Michael Tokarev wrote: On 14.06.2012 23:45, Michael Tokarev wrote: On 14.06.2012 23:22, Michael Tokarev wrote: Now that's something else. Reported by a debian user, but trivially reproducible. $ kvm -m 1.4g KVM internal error. Suberror: 1 emulation failure

[PATCH] kvm: align ram_size to page boundary

2012-06-17 Thread Avi Kivity
kvm is not able to execute out of partial pages; align the RAM size so partial pages aren't present. Reported-by: Michael Tokarev m...@tls.msk.ru Signed-off-by: Avi Kivity a...@redhat.com --- kvm-all.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/kvm-all.c b/kvm-all.c index

[Bug 43501] all 32bit binaries produce Illegal Instruction after KVM migration from AMD - Intel host

2012-06-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=43501 Avi Kivity a...@redhat.com changed: What|Removed |Added CC||a...@redhat.com ---

[Bug 43501] all 32bit binaries produce Illegal Instruction after KVM migration from AMD - Intel host

2012-06-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=43501 --- Comment #2 from Avi Kivity a...@redhat.com 2012-06-17 10:05:40 --- Try the following command line (on both hosts) qemu -cpu phenom,vendor=AuthenticAMD Note that 32-on-64 applications will suffer a performance penalty when using

Re: Sound not working on vm clients

2012-06-17 Thread Alon Levy
On Sat, Jun 16, 2012 at 06:40:13PM -0700, David Highley wrote: We have two vm clients and neither have sound. hosting platform is Fedora 16 x86_64 first client is Fedora 17 i686 second client is Ubuntu 12.04 i686 libvirt-0.9.6-5.fc16.x86_64 qemu-kvm-0.15.1-5.fc16.x86_64 Tried both VNC

Re: [PATCH] kvm: align ram_size to page boundary

2012-06-17 Thread Jan Kiszka
On 2012-06-17 10:47, Avi Kivity wrote: kvm is not able to execute out of partial pages; align the RAM size so partial pages aren't present. Reported-by: Michael Tokarev m...@tls.msk.ru Signed-off-by: Avi Kivity a...@redhat.com --- kvm-all.c |2 ++ 1 file changed, 2 insertions(+)

Re: [RFC PATCH] kvm: Extend irqfd to support level interrupts

2012-06-17 Thread Jan Kiszka
On 2012-06-16 18:34, Alex Williamson wrote: I'm looking for opinions on this approach. For vfio device assignment we minimally need a way to get EOIs from the in-kernel irqchip out to userspace. Getting that out via an eventfd would allow us to bounce all level interrupts out to userspace,

Re: [PATCH] kvm: align ram_size to page boundary

2012-06-17 Thread Avi Kivity
On 06/17/2012 02:03 PM, Jan Kiszka wrote: On 2012-06-17 10:47, Avi Kivity wrote: kvm is not able to execute out of partial pages; align the RAM size so partial pages aren't present. Reported-by: Michael Tokarev m...@tls.msk.ru Signed-off-by: Avi Kivity a...@redhat.com --- kvm-all.c |

Re: [PATCH] kvm: align ram_size to page boundary

2012-06-17 Thread Jan Kiszka
On 2012-06-17 13:30, Avi Kivity wrote: On 06/17/2012 02:03 PM, Jan Kiszka wrote: On 2012-06-17 10:47, Avi Kivity wrote: kvm is not able to execute out of partial pages; align the RAM size so partial pages aren't present. Reported-by: Michael Tokarev m...@tls.msk.ru Signed-off-by: Avi Kivity

Re: [PATCH] kvm: align ram_size to page boundary

2012-06-17 Thread Avi Kivity
On 06/17/2012 02:47 PM, Jan Kiszka wrote: I think this should rather go into generic code. To be honest, I put this in kvm-specific code because vl.c doesn't have TARGET_PAGE_ALIGN. Maybe we should have machine-page_size or machine-ram_alignment. What sense does it make to have

Re: [Qemu-devel] [PATCH] kvm: align ram_size to page boundary

2012-06-17 Thread Blue Swirl
On Sun, Jun 17, 2012 at 11:51 AM, Avi Kivity a...@redhat.com wrote: On 06/17/2012 02:47 PM, Jan Kiszka wrote: I think this should rather go into generic code. To be honest, I put this in kvm-specific code because vl.c doesn't have TARGET_PAGE_ALIGN.  Maybe we should have machine-page_size or

Re: [Qemu-devel] [PATCH] kvm: align ram_size to page boundary

2012-06-17 Thread Peter Maydell
On 17 June 2012 13:43, Blue Swirl blauwir...@gmail.com wrote: The boards should make sure that the amount of RAM is feasible with the board memory slots. It's not possible to put 256kb SIMMs to a slot that expects 1GB DIMMs. We can allow some flexibility there though, I'm not sure if the

Re: [Qemu-devel] [PATCH] kvm: align ram_size to page boundary

2012-06-17 Thread Avi Kivity
On 06/17/2012 03:43 PM, Blue Swirl wrote: On Sun, Jun 17, 2012 at 11:51 AM, Avi Kivity a...@redhat.com wrote: On 06/17/2012 02:47 PM, Jan Kiszka wrote: I think this should rather go into generic code. To be honest, I put this in kvm-specific code because vl.c doesn't have TARGET_PAGE_ALIGN.

Re: [Qemu-devel] [PATCH] kvm: align ram_size to page boundary

2012-06-17 Thread Blue Swirl
On Sun, Jun 17, 2012 at 12:54 PM, Avi Kivity a...@redhat.com wrote: On 06/17/2012 03:43 PM, Blue Swirl wrote: On Sun, Jun 17, 2012 at 11:51 AM, Avi Kivity a...@redhat.com wrote: On 06/17/2012 02:47 PM, Jan Kiszka wrote: I think this should rather go into generic code. To be honest, I put

Re: [Qemu-devel] [PATCH] kvm: align ram_size to page boundary

2012-06-17 Thread Avi Kivity
On 06/17/2012 04:06 PM, Blue Swirl wrote: strtosz() is much too general. We could do it in vl.c without trouble. However, it takes away our ability to emulate a 640k should be enough for everyone machine. Then how about current max of target page sizes: 8k? No machine should want less

Re: [RFC PATCH] kvm: Extend irqfd to support level interrupts

2012-06-17 Thread Michael S. Tsirkin
On Sat, Jun 16, 2012 at 10:34:39AM -0600, Alex Williamson wrote: I'm looking for opinions on this approach. For vfio device assignment we minimally need a way to get EOIs from the in-kernel irqchip out to userspace. Getting that out via an eventfd would allow us to bounce all level

[PATCH] Fixes related to processing of qemu's -numa option

2012-06-17 Thread Chegu Vinod
The -numa option to qemu is used to create [fake] numa nodes and expose them to the guest OS instance. There are a couple of issues with the -numa option: a) Max VCPU's that can be specified for a guest while using the qemu's -numa option is 64. Due to a typecasting issue when the number

Re: [RFC PATCH] kvm: Extend irqfd to support level interrupts

2012-06-17 Thread Alex Williamson
On Sun, 2012-06-17 at 21:44 +0300, Michael S. Tsirkin wrote: On Sat, Jun 16, 2012 at 10:34:39AM -0600, Alex Williamson wrote: I'm looking for opinions on this approach. For vfio device assignment we minimally need a way to get EOIs from the in-kernel irqchip out to userspace. Getting that

Re: [PATCH 4/5] powerpc: bitops: Introduce {clear,set}_bit_le()

2012-06-17 Thread Benjamin Herrenschmidt
On Wed, 2012-06-13 at 13:04 +0900, Takuya Yoshikawa wrote: From: Takuya Yoshikawa yoshikawa.tak...@oss.ntt.co.jp Needed to replace test_and_set_bit_le() in virt/kvm/kvm_main.c which is being used for this missing function. Signed-off-by: Takuya Yoshikawa yoshikawa.tak...@oss.ntt.co.jp

Re: [RFC PATCH] kvm: Extend irqfd to support level interrupts

2012-06-17 Thread Alex Williamson
On Sun, Jun 17, 2012 at 3:38 PM, Alex Williamson alex.william...@redhat.com wrote: On Sun, 2012-06-17 at 21:44 +0300, Michael S. Tsirkin wrote: On Sat, Jun 16, 2012 at 10:34:39AM -0600, Alex Williamson wrote: I'm looking for opinions on this approach.  For vfio device assignment we minimally

[Bug 43501] all 32bit binaries produce Illegal Instruction after KVM migration from AMD - Intel host

2012-06-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=43501 --- Comment #3 from Paul Zimdars pzimd...@gmail.com 2012-06-17 23:28:24 --- Trying the above options results in us being unable to start the guest on the AMD host in order to test migration. It complains that guest cpu is not compatible with

[Bug 43501] all 32bit binaries produce Illegal Instruction after KVM migration from AMD - Intel host

2012-06-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=43501 --- Comment #4 from Paul Zimdars pzimd...@gmail.com 2012-06-18 02:52:06 --- (In reply to comment #1) What host kernel are you using? 2.6.32-220.17.1.el6.x86_64 (SL 6.2) -- Configure bugmail:

Re: [PATCH v3 6/6] KVM: introduce readonly memslot

2012-06-17 Thread Xiao Guangrong
On 06/16/2012 10:11 AM, Marcelo Tosatti wrote: On Tue, Jun 12, 2012 at 10:49:31AM +0800, Xiao Guangrong wrote: In current code, if we map a readonly memory space from host to guest and the page is not currently mapped in the host, we will get a fault-pfn and async is not allowed, then the vm

Re: [RFC PATCH] kvm: Extend irqfd to support level interrupts

2012-06-17 Thread Michael S. Tsirkin
On Sun, Jun 17, 2012 at 03:38:57PM -0600, Alex Williamson wrote: On Sun, 2012-06-17 at 21:44 +0300, Michael S. Tsirkin wrote: On Sat, Jun 16, 2012 at 10:34:39AM -0600, Alex Williamson wrote: I'm looking for opinions on this approach. For vfio device assignment we minimally need a way to