WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [qemu-xen-unstable] qemu-xen: support PV on HVM MSIX rem

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [qemu-xen-unstable] qemu-xen: support PV on HVM MSIX remapping
From: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Date: Wed, 5 Jan 2011 16:05:04 -0800
Delivery-date: Wed, 05 Jan 2011 16:05:13 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
commit 7f6daabd70ff94b7465798dcadb71e79562db2b2
Author: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Date:   Wed Jan 5 23:14:37 2011 +0000

    qemu-xen: support PV on HVM MSIX remapping
    
    Support PV on HVM MSIX remapping
    
    The technique is the same used with MSI: if the guest enables an MSIX
    passing 0 as vector number, then read the address and use it as pirq
    number for the following mapping request to Xen.
    
    Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
---
 hw/pt-msi.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/hw/pt-msi.c b/hw/pt-msi.c
index f0fb3e3..b01744e 100644
--- a/hw/pt-msi.c
+++ b/hw/pt-msi.c
@@ -300,6 +300,14 @@ static int pt_msix_update_one(struct pt_dev *dev, int 
entry_nr)
     if ( !entry->flags )
         return 0;
 
+    if (!gvec) {
+        /* if gvec is 0, the guest is asking for a particular pirq that
+         * is passed as dest_id */
+        pirq = ((gaddr >> 32) & 0xffffff00) |
+               (((gaddr & 0xffffffff) >> MSI_TARGET_CPU_SHIFT) & 0xff);
+        PT_LOG("pt_msix_update_one requested pirq = %d\n", pirq);
+    }
+
     /* Check if this entry is already mapped */
     if ( entry->pirq == -1 )
     {
--
generated by git-patchbot for /home/xen/git/qemu-xen-unstable.git

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [qemu-xen-unstable] qemu-xen: support PV on HVM MSIX remapping, Ian Jackson <=