Re: [kvm-devel] [PATCH 2/5] KVM: Add irqdevice object

2007-04-22 Thread Avi Kivity
Gregory Haskins wrote: The current code is geared towards using a user-mode (A)PIC. This patch adds an irqdevice abstraction, and implements a userint model to handle the duties of the original code. Later, we can develop other irqdevice models to handle objects like LAPIC, IOAPIC, i8259,

Re: [kvm-devel] [PATCH 3/5] KVM: Adds ability to preepmt an executing VCPU

2007-04-22 Thread Avi Kivity
Gregory Haskins wrote: The VCPU executes synchronously w.r.t. userspace today, and therefore interrupt injection is pretty straight forward. However, we will soon need to be able to inject interrupts asynchronous to the execution of the VCPU due to the introduction of SMP, paravirtualized

Re: [kvm-devel] [PATCH 4/5] KVM: Local-APIC interface cleanup

2007-04-22 Thread Avi Kivity
Gregory Haskins wrote: Adds an abstraction to the LAPIC logic so that we can later substitute it for an in-kernel model. This is overly abstracted. It's not like you can (on real hardware) wire your own lapic and plug it into the processor. It's well defined, and there are just three

Re: [kvm-devel] [PATCH 5/5] KVM: Add support for in-kernel LAPIC model

2007-04-22 Thread Avi Kivity
Gregory Haskins wrote: Signed-off-by: Gregory Haskins [EMAIL PROTECTED] --- drivers/kvm/Makefile |2 drivers/kvm/kernint.c | 168 + drivers/kvm/kvm.h | 14 drivers/kvm/kvm_main.c | 142 + drivers/kvm/lapic.c| 1472

Re: [kvm-devel] KVM: Patch series for in-kernel APIC support

2007-04-22 Thread Avi Kivity
Gregory Haskins wrote: The following is my patch series for adding in-kernel APIC support. It supports three levels of dynamic configuration (via a new ioctl): * level 0 = (default) compatiblity mode (everything in userspace) * level 1 = LAPIC in kernel, IOAPIC/i8259 in userspace *

Re: [kvm-devel] could not open /dev/kvm

2007-04-22 Thread Avi Kivity
Benjamin Budts wrote: Hi, I made an mknod myself now, did a cat of /sys/class/misc/kvm/dev 18 64 and did a mknod /dev/kvm c 18 64 everything OK now how come I dont have the /dev automatically ? udevtrigger didn't help, pgrep udevd showed the pid of udevd... so it was alive and

Re: [kvm-devel] exception 13 on windows restart?

2007-04-22 Thread Avi Kivity
Troy Benjegerdes wrote: I have a windows XP guest that when the guest attempts to restart does this: [EMAIL PROTECTED]:/extra$ kvm -m 512 -usbdevice tablet XP-2007-4-19-new.img.raw exception 13 (0) Is this the reboot that's part of the install? If so, it's kind-of-expected.

[kvm-devel] [PATCH -stable] KVM: MMU: Fix guest writes to nonpae pde

2007-04-22 Thread Avi Kivity
KVM shadow page tables are always in pae mode, regardless of the guest setting. This means that a guest pde (mapping 4MB of memory) is mapped to two shadow pdes (mapping 2MB each). When the guest writes to a pte or pde, we intercept the write and emulate it. We also remove any shadowed mappings

[kvm-devel] [PATCH -stable] KVM: MMU: Fix host memory corruption on i386 with = 4GB ram

2007-04-22 Thread Avi Kivity
PAGE_MASK is an unsigned long, so using it to mask physical addresses on i386 (which are 64-bit wide) leads to truncation. This can result in page-private of unrelated memory pages being modified, with disasterous results. Fix by not using PAGE_MASK for physical addresses; instead calculate the

Re: [kvm-devel] Missing mouse clicks running windows XP

2007-04-22 Thread Carsten Emde
Andrew, On all kvm versions I have tried (16 - 19) running windows XP, with the XP window having captured the mouse, I have to make my mouse clicks slow and deliberate else XP does notice them. It makes double clicks especially hard. I had the same problem, it went away immediately after I

Re: [kvm-devel] Missing mouse clicks running windows XP

2007-04-22 Thread Avi Kivity
Carsten Emde wrote: Andrew, On all kvm versions I have tried (16 - 19) running windows XP, with the XP window having captured the mouse, I have to make my mouse clicks slow and deliberate else XP does notice them. It makes double clicks especially hard. I had the same problem, it

Re: [kvm-devel] Missing mouse clicks running windows XP

2007-04-22 Thread Andrew Walrond
On Sunday 22 April 2007 11:40:32 Avi Kivity wrote: Carsten Emde wrote: Andrew, On all kvm versions I have tried (16 - 19) running windows XP, with the XP window having captured the mouse, I have to make my mouse clicks slow and deliberate else XP does notice them. It makes double clicks

Re: [kvm-devel] exception 13 on windows restart?

2007-04-22 Thread Jon
On Sun, Apr 22, 2007 at 12:08:33PM +0300, Avi Kivity wrote: Is this the reboot that's part of the install? If so, it's kind-of-expected. Otherwise reboots should work. I've been having the same error as Troy, with both Windows XP and Linux guests. I'm using a Core Duo cpu. But I just

Re: [kvm-devel] Missing mouse clicks running windows XP

2007-04-22 Thread Carsten Emde
Andrew Walrond wrote: On Sunday 22 April 2007 11:40:32 Avi Kivity wrote: Carsten Emde wrote: Andrew, On all kvm versions I have tried (16 - 19) running windows XP, with the XP window having captured the mouse, I have to make my mouse clicks slow and deliberate else XP does notice them. It

Re: [kvm-devel] Missing mouse clicks running windows XP

2007-04-22 Thread Avi Kivity
Andrew Walrond wrote: Anything in dmesg? Ah... A load of these [ 3949.793179] rtc: lost some interrupts at 1024Hz. [ 3949.813162] rtc: lost some interrupts at 1024Hz. [ 3949.833150] rtc: lost some interrupts at 1024Hz. [ 3949.853139] rtc: lost some interrupts at 1024Hz. [

[kvm-devel] [ kvm-Bugs-1705253 ] Ubuntu Lts/kvm-20: Kernel panic because of acpi

2007-04-22 Thread SourceForge.net
Bugs item #1705253, was opened at 2007-04-22 14:03 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=1705253group_id=180599 Please note that this message will contain a full copy of

Re: [kvm-devel] Missing mouse clicks running windows XP

2007-04-22 Thread Andrew Walrond
On Sunday 22 April 2007 11:25:21 Avi Kivity wrote: Andrew Walrond wrote: On all kvm versions I have tried (16 - 19) running windows XP, with the XP window having captured the mouse, I have to make my mouse clicks slow and deliberate else XP does notice them. It makes double clicks

Re: [kvm-devel] Ubuntu Lts: Kernel panic because of acpi

2007-04-22 Thread Avi Kivity
Fabian Deutsch wrote: Hey, I just updated kvm to the latest head revision (userland and kernelspace) on a 32bit host runnig fedora 6. First my Ubuntu Lts guest panicked because of some acpi thing. I added the -no-acpi option and my guest is running fine again. Just wanted to note this ..

[kvm-devel] Ubuntu Lts: Kernel panic because of acpi

2007-04-22 Thread Fabian Deutsch
Hey, I just updated kvm to the latest head revision (userland and kernelspace) on a 32bit host runnig fedora 6. First my Ubuntu Lts guest panicked because of some acpi thing. I added the -no-acpi option and my guest is running fine again. Just wanted to note this .. - fabian

Re: [kvm-devel] Missing mouse clicks running windows XP

2007-04-22 Thread Andrew Walrond
Interestingly, I still get the lost interrupts messages if I leave the max-user-freq at the bootup default of 64. Running XP under kvm fresh after a reboot: $ cat /proc/sys/dev/rtc/max-user-freq 64 $ dmesg | tail -n 3 [ 362.567318] rtc: lost some interrupts at 1024Hz. [ 362.569987] rtc: lost

Re: [kvm-devel] Missing mouse clicks running windows XP

2007-04-22 Thread Jon
On Sun, Apr 22, 2007 at 12:21:40PM +0100, Andrew Walrond wrote: Latest Feisty kernel but using kvm-19 modules No idea about CONFIG_HZ. The Kubuntu kernel doesn't seem to expose the .config in /proc. Any other way I can find out? grep CONFIG_HZ /boot/config-`uname -r` [ 3949.793179] rtc:

Re: [kvm-devel] Missing mouse clicks running windows XP

2007-04-22 Thread Andrew Walrond
On Sunday 22 April 2007 11:25:21 Avi Kivity wrote: Anything in dmesg? Ok, so running as root allows qemu to ignore /proc/sys/dev/rtc/max-user-freq and increase the frequency to 1024Hz anyway. Running as a user means I get this message from qemu again: Could not configure '/dev/rtc' to have a

[kvm-devel] XP 64 bit in KVM

2007-04-22 Thread ymed
Hello! I have recently tried to install XP 64 bit SP1 on KVM 16. But Windows setup buzzed on text mode and screen: Setup is starting Windows. Xp 32 bit runs on KVM 16 without any problems. Does KVM support XP 64 bit? Thank you very much!

[kvm-devel] [ANNOUNCE] virtbench w/ kvm support

2007-04-22 Thread Rusty Russell
Hi all, I've been toying around with a benchmark suite for virtualization, and I've just added kvm support. You can download the source tarball straight from the mercurial repo: http://ozlabs.org/~rusty/virtbench/ http://ozlabs.org/~rusty/virtbench/?archive/tip.tar.bz2