[Qemu-devel] kvm mmu notifier

2014-02-09 Thread Hu Yaohui
Hi All, If the host system decides that it wants to push a given page out to swap, the host will notify the host through registered mmu notifier to inform the guest. I am wondering if there any other situations, other than swapping, which will trigger the mmu notifier to inform host page change to

Re: [Qemu-devel] KVM call agenda for 2014-01-21

2014-01-14 Thread Hu Yaohui
Hi Juan, What's that about? Best Wishes, Yaohui Hu On Tue, Jan 14, 2014 at 10:52 AM, Juan Quintela wrote: > > Hi > > Please, send any topic that you are interested in covering. > > Thanks, Juan. > > Call details: > > 09:00 AM to 10:00 AM EDT > Every two weeks > > If you need phone number details

[Qemu-devel] Emulated Guest TLB flush IPIs in qemu-kvm

2014-01-09 Thread Hu Yaohui
Hi all. If the hardware does not support APIC virtualization: kvm_vcpu_kick sends an host-IPI to the remote vcpu if that vcpu is in guest mode, a VM-exit (exit reason: external interrupt) will be triggered due to the host-IPI. Then on VM-entry (inject_pending_event) the guest-IPI is injected. If th

[Qemu-devel] QEMU-KVM Guest TLB flush IPI emulation questions

2014-01-08 Thread Hu Yaohui
Hi All, I have a question regarding Guest TLB flush IPI. Suppose we get two vcpus 0 and 1. When vcpu#0 wants to invalidate the tlb entry on vcpu#1. An IPI will be generated by lapic on vcpu#0 by writing to ICR which will cause a vmexit. apic_send_ipi->kvm_irq_delivery_to_apic->kvm_apic_set_irq->__a

Re: [Qemu-devel] Virtio Polling Mode

2013-09-30 Thread Hu Yaohui
Hu On Mon, Sep 30, 2013 at 6:05 PM, Anthony Liguori wrote: > On Mon, Sep 30, 2013 at 2:00 PM, Hu Yaohui wrote: > >> Hi Anthony, >> Thanks for your reply! Could you please be more specific about this? >> Which flag, >> > > You should read the virtio spec.

Re: [Qemu-devel] Virtio Polling Mode

2013-09-30 Thread Hu Yaohui
s for your time! Best Wishes, Yaohui Hu On Sun, Sep 29, 2013 at 5:29 AM, Jason Wang wrote: > On 09/28/2013 02:56 AM, Hu Yaohui wrote: > > Hi All, > > I am wondering whether virtio has provided polling mode already. > > Instead of sending a event from guest to host through eve

Re: [Qemu-devel] Virtio Polling Mode

2013-09-30 Thread Hu Yaohui
egards, > > Anthony Liguori > > > On Fri, Sep 27, 2013 at 1:56 PM, Hu Yaohui wrote: > >> Hi All, >> I am wondering whether virtio has provided polling mode already. Instead >> of sending a event from guest to host through eventfd on guest side and >> inject an

[Qemu-devel] Virtio Polling Mode

2013-09-27 Thread Hu Yaohui
Hi All, I am wondering whether virtio has provided polling mode already. Instead of sending a event from guest to host through eventfd on guest side and inject an interrupt into guest on host side to notify each other? Could both sides keep polling the Vring to communicate with each other? Thanks f

Re: [Qemu-devel] Fwd: Guest VM debug (Int 3 panic)

2013-09-26 Thread Hu Yaohui
On Thu, Sep 26, 2013 at 3:20 PM, Hu Yaohui wrote: > > > On Thu, Sep 26, 2013 at 3:07 PM, Jan Kiszka wrote: > >> On 2013-09-26 20:53, Hu Yaohui wrote: >> > Hi Jan, >> > I am working on some Nested VM related projects. Some other teammates >> have >

Re: [Qemu-devel] Fwd: Guest VM debug (Int 3 panic)

2013-09-26 Thread Hu Yaohui
On Thu, Sep 26, 2013 at 3:07 PM, Jan Kiszka wrote: > On 2013-09-26 20:53, Hu Yaohui wrote: > > Hi Jan, > > I am working on some Nested VM related projects. Some other teammates > have > > made the modifications to the kvm module. > > And these modifications cannot

Re: [Qemu-devel] Fwd: Guest VM debug (Int 3 panic)

2013-09-26 Thread Hu Yaohui
function, or something else)? Thanks for your time! Best Wishes, Yaohui Hu On Thu, Sep 26, 2013 at 1:26 PM, Jan Kiszka wrote: > On 2013-09-26 16:14, Hu Yaohui wrote: > > Hi Jan, > > Thanks for your reply. > > On Thu, Sep 26, 2013 at 2:08 AM, Jan Kiszka wrote: > > &

Re: [Qemu-devel] Fwd: Guest VM debug (Int 3 panic)

2013-09-26 Thread Hu Yaohui
Hi Jan, Thanks for your reply. On Thu, Sep 26, 2013 at 2:08 AM, Jan Kiszka wrote: > On 2013-09-25 20:08, Hu Yaohui wrote: > > Hi All, > > I am trying to debug guest OS through qemu with kvm enabled. > > Following is what I have done: > > 1: fire the qemu-kvm > >

[Qemu-devel] Fwd: Guest VM debug (Int 3 panic)

2013-09-25 Thread Hu Yaohui
Hi All, I am trying to debug guest OS through qemu with kvm enabled. Following is what I have done: 1: fire the qemu-kvm sudo qemu-system-x86_64 -hda vdisk.img -m 4096 -smp 2 -vnc :2 -boot c -s 2: wait until login into guest OS (ubuntu 10.04) 3: fire gdb gdb vmlinux target remote :1234 b do_fo

[Qemu-devel] Guest VM debug (Int 3 panic)

2013-09-25 Thread Hu Yaohui
Hi All, I am trying to debug guest OS through qemu with kvm enabled. Following is what I have done: 1: fire the qemu-kvm sudo qemu-system-x86_64 -hda vdisk.img -m 4096 -smp 2 -vnc :2 -boot c -s 2: wait until login into guest OS (ubuntu 10.04) 3: fire gdb gdb vmlinux target remote :1234 b do_fo

[Qemu-devel] Is it possible to detect GPA access through the mapped HVA

2013-07-18 Thread Hu Yaohui
Hi I am new to QEMU. I want to know is it possible to detect the guest OS physical memory access through QEMU? What I am doing right now is use mprotect to set the mapped RAM as not accessible. Then register the SIGSEGV handler to handle the segmentation fault in qemu_kvm_eat_signals. But I always

[Qemu-devel] Fwd: Is it possible to detect GPA access through the mapped HVA

2013-07-18 Thread Hu Yaohui
Hi I am new to QEMU. I want to know is it possible to detect the guest OS physical memory access through QEMU? What I am doing right now is use mprotect to set the mapped RAM as not accessible. Then register the SIGSEGV handler to handle the segmentation fault in qemu_kvm_eat_signals. But I always