Re: [questions] savevm|loadvm

2010-04-06 Thread Avi Kivity
On 04/01/2010 10:35 PM, Wenhao Xu wrote: Does current qemu-kvm (qemu v0.12.3) use the irqchip, pit of KVM? I cannot find any KVM_CREATE_IRQCHIP and KVM_CREATE_PIT in the qemu code. Are you looking at qemu or qemu-kvm? Concerning the interface between qemu and kvm, I have the following co

Re: [questions] savevm|loadvm

2010-04-01 Thread Wenhao Xu
Does current qemu-kvm (qemu v0.12.3) use the irqchip, pit of KVM? I cannot find any KVM_CREATE_IRQCHIP and KVM_CREATE_PIT in the qemu code. Concerning the interface between qemu and kvm, I have the following confusion: 1. How irqchip and pit of KVM collaborating with the irq and pit emulation of Q

Re: [questions] savevm|loadvm

2010-04-01 Thread Avi Kivity
On 03/31/2010 02:31 PM, Juan Quintela wrote: Wenhao Xu wrote: Hi, Juan, I am fresh to both QEMU and KVM. But so far, I notice that QEMU uses "KVM_SET_USER_MEMORY_REGION" to set memory region that KVM can use and uses cpu_register_physical_memory_offset to register the same memory to QEM

Re: [Qemu-devel] Re: [questions] savevm|loadvm

2010-04-01 Thread Paul Brook
> Wenhao Xu wrote: > > Hi, Juan, > >I am fresh to both QEMU and KVM. But so far, I notice that QEMU > > uses "KVM_SET_USER_MEMORY_REGION" to set memory region that KVM can > > use and uses cpu_register_physical_memory_offset to register the same > > memory to QEMU emulator, which means QEMU an

Re: [questions] savevm|loadvm

2010-03-31 Thread Juan Quintela
Wenhao Xu wrote: > Hi, Juan, >I am fresh to both QEMU and KVM. But so far, I notice that QEMU > uses "KVM_SET_USER_MEMORY_REGION" to set memory region that KVM can > use and uses cpu_register_physical_memory_offset to register the same > memory to QEMU emulator, which means QEMU and KVM use th

Re: [questions] savevm|loadvm

2010-03-30 Thread Wenhao Xu
Hi, Juan, I am fresh to both QEMU and KVM. But so far, I notice that QEMU uses "KVM_SET_USER_MEMORY_REGION" to set memory region that KVM can use and uses cpu_register_physical_memory_offset to register the same memory to QEMU emulator, which means QEMU and KVM use the same host virtual memory.

Re: [questions] savevm|loadvm

2010-03-30 Thread Juan Quintela
Wenhao Xu wrote: > Hi, all, > ¿ï½ I am working with switching QEMU from running in KVM mode to QEMU > emulatoin mode dynamically. > ¿ï½ Intuitively, if the snapshot created using savevm in kvm mode can be > used by the loadvm command in QEMU emulator mode, the switchment could > makes use of this.

[questions] savevm|loadvm

2010-03-29 Thread Wenhao Xu
Hi, all,    I am working with switching QEMU from running in KVM mode to QEMU emulatoin mode dynamically.    Intuitively, if the snapshot created using savevm in kvm mode can be used by the loadvm command in QEMU emulator mode, the switchment could makes use of this.  I tried to do so. However, it