From patchwork Thu Apr 5 09:34:20 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Liu X-Patchwork-Id: 150897 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 21723B704F for ; Thu, 5 Apr 2012 19:35:59 +1000 (EST) Received: from localhost ([::1]:32894 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFj6h-0001kE-S1 for incoming@patchwork.ozlabs.org; Thu, 05 Apr 2012 05:35:55 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFj6W-0001i8-Gx for qemu-devel@nongnu.org; Thu, 05 Apr 2012 05:35:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SFj6Q-0002M0-19 for qemu-devel@nongnu.org; Thu, 05 Apr 2012 05:35:44 -0400 Received: from smtp.ctxuk.citrix.com ([62.200.22.115]:37892 helo=SMTP.EU.CITRIX.COM) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFj6P-0002Kn-QW for qemu-devel@nongnu.org; Thu, 05 Apr 2012 05:35:37 -0400 X-IronPort-AV: E=Sophos;i="4.75,375,1330905600"; d="scan'208";a="11787863" Received: from lonpmailmx01.citrite.net ([10.30.203.162]) by LONPIPO01.EU.CITRIX.COM with ESMTP/TLS/RC4-MD5; 05 Apr 2012 09:35:32 +0000 Received: from [10.80.2.15] (10.80.2.15) by LONPMAILMX01.citrite.net (10.30.203.162) with Microsoft SMTP Server id 8.3.213.0; Thu, 5 Apr 2012 10:35:31 +0100 Message-ID: <1333618460.2513.7.camel@leeds.uk.xensource.com> From: Wei Liu To: QEMU-devel Date: Thu, 5 Apr 2012 10:34:20 +0100 In-Reply-To: <1333618350.2513.5.camel@leeds.uk.xensource.com> References: <1333618350.2513.5.camel@leeds.uk.xensource.com> X-Mailer: Evolution 3.2.2-1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 62.200.22.115 Cc: xen-devel , wei.liu2@citrix.com, Stefano Stabellini , Jan Kiszka , "liuw@liuw.name" , Paolo Bonzini Subject: [Qemu-devel] [PATCH 1/2] Xen: basic HVM MSI injection support. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Wei Liu --- hw/xen.h | 1 + xen-all.c | 5 +++++ xen-stub.c | 4 ++++ 3 files changed, 10 insertions(+), 0 deletions(-) diff --git a/hw/xen.h b/hw/xen.h index b46879c..e5926b7 100644 --- a/hw/xen.h +++ b/hw/xen.h @@ -34,6 +34,7 @@ static inline int xen_enabled(void) int xen_pci_slot_get_pirq(PCIDevice *pci_dev, int irq_num); void xen_piix3_set_irq(void *opaque, int irq_num, int level); void xen_piix_pci_write_config_client(uint32_t address, uint32_t val, int len); +void xen_hvm_inject_msi(uint64_t addr, uint32_t data); void xen_cmos_set_s3_resume(void *opaque, int irq, int level); qemu_irq *xen_interrupt_controller_init(void); diff --git a/xen-all.c b/xen-all.c index 3e6de41..abd2b2d 100644 --- a/xen-all.c +++ b/xen-all.c @@ -122,6 +122,11 @@ void xen_piix_pci_write_config_client(uint32_t address, uint32_t val, int len) } } +void xen_hvm_inject_msi(uint64_t addr, uint32_t data) +{ + xc_hvm_inject_msi(xen_xc, xen_domid, addr, data); +} + static void xen_suspend_notifier(Notifier *notifier, void *data) { xc_set_hvm_param(xen_xc, xen_domid, HVM_PARAM_ACPI_S_STATE, 3); diff --git a/xen-stub.c b/xen-stub.c index 9ea02d4..8ff2b79 100644 --- a/xen-stub.c +++ b/xen-stub.c @@ -29,6 +29,10 @@ void xen_piix_pci_write_config_client(uint32_t address, uint32_t val, int len) { } +void xen_hvm_inject_msi(uint64_t addr, uint32_t data) +{ +} + void xen_cmos_set_s3_resume(void *opaque, int irq, int level) { }