[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 quint...@redhat.com 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

[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

[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.

Re: [Qemu-devel] Virtio Polling Mode

2013-09-30 Thread Hu Yaohui
Liguori On Fri, Sep 27, 2013 at 1:56 PM, Hu Yaohui loki2...@gmail.com 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 interrupt into guest on host side to notify each other

Re: [Qemu-devel] Virtio Polling Mode

2013-09-30 Thread Hu Yaohui
for your time! Best Wishes, Yaohui Hu On Sun, Sep 29, 2013 at 5:29 AM, Jason Wang jasow...@redhat.com 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 eventfd on guest

Re: [Qemu-devel] Virtio Polling Mode

2013-09-30 Thread Hu Yaohui
Hu On Mon, Sep 30, 2013 at 6:05 PM, Anthony Liguori anth...@codemonkey.wswrote: On Mon, Sep 30, 2013 at 2:00 PM, Hu Yaohui loki2...@gmail.com wrote: Hi Anthony, Thanks for your reply! Could you please be more specific about this? Which flag, You should read the virtio spec. It's all

[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

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 jan.kis...@web.de 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 snip sudo qemu-system

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 jan.kis...@web.de 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 jan.kis...@web.de wrote

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 jan.kis...@web.de 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 cause the misguided INT3

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 loki2...@gmail.com wrote: On Thu, Sep 26, 2013 at 3:07 PM, Jan Kiszka jan.kis...@web.de 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

[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 snip sudo qemu-system-x86_64 -hda vdisk.img -m 4096 -smp 2 -vnc :2 -boot c -s /snip 2: wait until login into guest OS (ubuntu 10.04) 3: fire gdb snip gdb vmlinux target remote

[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 snip sudo qemu-system-x86_64 -hda vdisk.img -m 4096 -smp 2 -vnc :2 -boot c -s /snip 2: wait until login into guest OS (ubuntu 10.04) 3: fire gdb snip gdb vmlinux target remote

[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

[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