Need advice on timed access to guest pages

2008-07-02 Thread Arn
Hi KVM devs, I'm trying to write a guest kernel module (or modify kernel code) to do the following : Say I have a kvm guest with 512 MB RAM running on a host with 2 GB RAM. Now I run a process on the host that will cause increasing memory pressure which will in turn cause the host to swap out

Re: KVM and Kernel Development

2008-07-02 Thread Slohm Gadaburi
On Tue, Jul 1, 2008 at 6:32 PM, Soren Hansen [EMAIL PROTECTED] wrote: replied off-list as I don't think this is of general interest to the kvm community. Thanks for the help both on and off-list. (if anyone's interested: the problem was indeed a lack of getty running on /dev/ttyS0) -- To

Re: loadvm: Error -1 while loading VM state

2008-07-02 Thread Slohm Gadaburi
On Tue, Jul 1, 2008 at 11:47 PM, Soren Hansen [EMAIL PROTECTED] wrote: On Tue, Jul 01, 2008 at 10:27:19PM +0300, Slohm Gadaburi wrote: I can't get qemu/kvm to loadvm a saved state. This is a known issue. We applied a patch to fix a security problem in I guess I will have to use vanilla kvm as

Re: loadvm: Error -1 while loading VM state

2008-07-02 Thread Soren Hansen
On Wed, Jul 02, 2008 at 10:31:59AM +0300, Slohm Gadaburi wrote: FWIW, the preferred way to save VM state (or to use KVM at all, really) in Ubuntu is through libvirt/virt-manager anyway, but this bug really Hmm, couldn't see any snapshots mechanism in virt-manager (at least not in the

Re: loadvm: Error -1 while loading VM state

2008-07-02 Thread Slohm Gadaburi
On Wed, Jul 2, 2008 at 10:38 AM, Soren Hansen [EMAIL PROTECTED] wrote: Mind you, what libvirt offers isn't proper snapshotting. It saves the VM state, but not your disk image state, so it's only useful for suspending Sounds great. How can one use libvirt ? What are the existing front ends ? I

Re: [PATCH 0 of 3] mmu notifier v18 for -mm

2008-07-02 Thread Robin Holt
On Wed, Jul 02, 2008 at 07:58:55AM +0300, Avi Kivity wrote: Andrew Morton wrote: On Thu, 26 Jun 2008 02:26:56 +0200 Andrea Arcangeli [EMAIL PROTECTED] wrote: Full patchset including other XPMEM support patches can be found here:

Re: [RFC]RE: [PATCH] kvm-ia64 irq assignment 1/2 kernel

2008-07-02 Thread Jes Sorensen
Hi Anthony, Looking back through this thread - do you happen to have an updated patch for the irq problem? If not, could you let me know which is your latest version and I will try and look at it. Cheers, Jes -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a

Doubts regarding Userspace driver access / virtio devices

2008-07-02 Thread Sukanto Ghosh
Can anyone guide me as to how the kvm module passes/forwards the IO requests to userspace drivers ? I want to know where in the code do the userspace(QEMU) device-drivers register themselves with the kvm module. Having looked at the kvm module code I saw that VMexits corresponding to

Re: Freeze with KVM_CLOCK, undocumented dependency VIRTIO_BLK - VIRTIO_PCI

2008-07-02 Thread Mark McLoughlin
On Sat, 2008-06-21 at 21:41 -0500, Anthony Liguori wrote: Bernhard Schmidt wrote: b) apparently VIRTIO_BLK works only when VIRTIO_PCI and thus PCI is enabled in the kernel. Otherwise the vda* device is not visible and the guest does not find its root filesystem. Is this expected? If

Re: [PATCH 4/4] KVM: Handle device assignment to guests

2008-07-02 Thread Amit Shah
Added locking (kvm-lock) around the initialization of function pointers for irq structures. So the new 4/4 patch is: Subject: [PATCH] KVM: Handle device assignment to guests From: Amit Shah [EMAIL PROTECTED] From: Ben-Ami Yassour [EMAIL PROTECTED] From: Han, Weidong [EMAIL PROTECTED] This

[PATCH] KVM: SVM: fix suspend/resume support

2008-07-02 Thread Joerg Roedel
On suspend the svm_hardware_disable function is called which frees all svm_data variables. On resume they are not re-allocated. This patch removes the deallocation of svm_data from the hardware_disable function to the hardware_unsetup function which is not called on suspend. Signed-off-by: Joerg

[PATCH] VT-d : changes to support KVM

2008-07-02 Thread Ben-Ami Yassour
From: Kay, Allen M [EMAIL PROTECTED] This patch extends the VT-d driver to support KVM [Ben: fixed memory pinning] Signed-off-by: Kay, Allen M [EMAIL PROTECTED] Signed-off-by: Weidong Han [EMAIL PROTECTED] Signed-off-by: Ben-Ami Yassour [EMAIL PROTECTED] --- drivers/pci/dmar.c |4

[PATCH] KVM: PCIPT: VT-d support

2008-07-02 Thread Ben-Ami Yassour
From: Kay, Allen M [EMAIL PROTECTED] This patch includes the functions to support VT-d for passthrough devices. [Ben: fixed memory pinning] Signed-off-by: Kay, Allen M [EMAIL PROTECTED] Signed-off-by: Weidong Han [EMAIL PROTECTED] Signed-off-by: Ben-Ami Yassour [EMAIL PROTECTED] ---

Re: [Bug] Real mode guests never wake up after an HLT instruction

2008-07-02 Thread Glauber Costa
On Sun, Jun 22, 2008 at 3:34 PM, Mohammed Gamal [EMAIL PROTECTED] wrote: On Sun, Jun 22, 2008 at 10:15 AM, Avi Kivity [EMAIL PROTECTED] wrote: Mohammed Gamal wrote: CPU Model: Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz KVM version: kvm-69-1687-gd660add Host Kernel: 2.6.26-rc5 (x86_64)

Re: Need advice on timed access to guest pages

2008-07-02 Thread Arn
On Wed, Jul 2, 2008 at 7:41 AM, Dor Laor [EMAIL PROTECTED] wrote: In theory an attempt by the guest to access a page that has been swapped out by the host should take much longer than accessing a page that is in memory. Your assumption is correct for userspace allocation inside the guest.

kvm rpms for sles

2008-07-02 Thread carlopmart
Hi all, Sombedody knows where I can find rpm kvm-70 packages for sles 10 sp2?? If not, can I compile kvm-70 without problems under sles 10 sp2?? Many thanks. -- CL Martinez carlopmart {at} gmail {d0t} com -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a

kvm-70 w/ x86_64 CentOS5 guest failing to exit on halt

2008-07-02 Thread Charles Duffy
Per subject. As the below log makes evident, ACPI is quite certainly enabled: Halting system... md: stopping all md devices. Shutdown: hda ACPI: PCI interrupt for device :00:06.0 disabled ACPI: PCI interrupt for device :00:05.0 disabled ACPI: PCI interrupt for device :00:04.0

Re: kvm-70 w/ x86_64 CentOS5 guest failing to exit on halt

2008-07-02 Thread Carlo Marcelo Arenas Belon
On Wed, Jul 02, 2008 at 07:07:04PM -0500, Charles Duffy wrote: Per subject. As the below log makes evident, ACPI is quite certainly enabled: ACPI halting doesn't turn off a real server either, maybe you want : # poweroff -p Carlo -- To unsubscribe from this list: send the line unsubscribe

RE: [RFC]RE: [PATCH] kvm-ia64 irq assignment 1/2 kernel

2008-07-02 Thread Xu, Anthony
Hi Jes, You can use this one, I'm considering how to make it more generic per AVI comment. Anthony Jes Sorensen wrote: Hi Anthony, Looking back through this thread - do you happen to have an updated patch for the irq problem? If not, could you let me know which is your latest version and