From mboxrd@z Thu Jan 1 00:00:00 1970 From: zhangzhi Subject: kvm running on core1 wants guest os on core2 to execute a pre-defined program Date: Sun, 17 Feb 2013 02:46:28 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from plane.gmane.org ([80.91.229.3]:54256 "EHLO plane.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755053Ab3BQDTq (ORCPT ); Sat, 16 Feb 2013 22:19:46 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U6unL-0006g5-Kq for kvm@vger.kernel.org; Sun, 17 Feb 2013 04:20:04 +0100 Received: from 202.161.57.167 ([202.161.57.167]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 17 Feb 2013 04:20:03 +0100 Received: from zhangzhi2022 by 202.161.57.167 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 17 Feb 2013 04:20:03 +0100 Sender: kvm-owner@vger.kernel.org List-ID: I have been studying some stuff about KVM and sincerely hope that someone is willing to reply to this mail. As we know, If physical NIC interrupt is received on physical CPU 0 which is in root mode and the hypervisor determines that this is a network packet targeted to the emulated NIC for a VM at the same time this VM is running a user program in guest mode on physical CPU 1. My question is: At this time can hypervisor running on CPU 0 *actively* interrupt VM and make it run the corresponding interrupt handler to handle the incoming network data packet? CPU 1 which is running a user program is not supposed to vm-exit considering the performance effect, so I can not use the inter-processor interrupt(IPI) to cause the CPU1 to leave guest mode and exit to the hypervisor. If anyone knows, please tell me. Thanks a lot ! Best regards, henry