From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:34067) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAXtV-00014v-Mw for qemu-devel@nongnu.org; Sat, 08 Sep 2012 23:09:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TAXtR-00033F-GN for qemu-devel@nongnu.org; Sat, 08 Sep 2012 23:09:09 -0400 Received: from mail-ie0-f173.google.com ([209.85.223.173]:39310) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAXtR-000338-BY for qemu-devel@nongnu.org; Sat, 08 Sep 2012 23:09:05 -0400 Received: by iebc10 with SMTP id c10so1135462ieb.4 for ; Sat, 08 Sep 2012 20:09:04 -0700 (PDT) Message-ID: <504C084C.4080900@gmail.com> Date: Sun, 09 Sep 2012 12:09:00 +0900 From: =?EUC-KR?B?190gq+ir86u4q+Wr8w==?= MIME-Version: 1.0 Content-Type: text/plain; charset=EUC-KR Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Inject Interrupt, Using VMCS during qemu live migration. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hello, I am trying to inject interrupt, in final phase of Live migration. I use vmcs_write32 function to inject interrupt. This function is called by qemu, with ioctl. This is Code. (KVM) void vmcs_write32_provider(unsigned long field, u32 value) { vmcs_write32(field, value); } long kvm_arch_vcpu_ioctl(struct file *filp, unsigned int ioctl, unsigned long arg) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~// case KVM_TEST_IOCTL: { r=0; //printk("Test IOCTL!!!\n"); int type = 0; int trap=58; u32 intr_fields= (0x80000000 | (type<<8) | trap); vmcs_write32_provider(0x00004016,intr_fields); printk("vmcs_write Success!!!\n"); goto out; } This code works perfectly when called by hypercall.(When call this function in kvm_emulate_hypercall function by guest VM.) But, when I trying to call this function by qemu(ioctl), This error message is occurred. http://pds23.egloos.com/pds/201209/09/86/f0062286_504c07a4bc3c7.png I need help. Thank you.