Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 572696 Details for
Bug 802251
kvm-perf backport: Lookup iobus devices by bsearch and resize kvm_io_range array dynamically
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
哈慈看KVM-tools patch
0001-kvm-tools-ioeventfd.patch (text/plain), 2.14 KB, created by
Amos Kong
on 2012-03-26 08:24:26 UTC
(
hide
)
Description:
哈慈看KVM-tools patch
Filename:
MIME Type:
Creator:
Amos Kong
Created:
2012-03-26 08:24:26 UTC
Size:
2.14 KB
patch
obsolete
>From e77593c49a0b414bda9dde552d1b128607c2d25e Mon Sep 17 00:00:00 2001 >From: Amos Kong <akong@redhat.com> >Date: Fri, 16 Mar 2012 13:06:36 +0800 >Subject: [PATCH] kvm-tools-ioeventfd > >Signed-off-by: Amos Kong <akong@redhat.com> >--- > tools/kvm/virtio/pci.c | 32 ++++++++++++++++++++++++++++++-- > 1 files changed, 30 insertions(+), 2 deletions(-) > >diff --git a/tools/kvm/virtio/pci.c b/tools/kvm/virtio/pci.c >index 5a3cad8..882e9ef 100644 >--- a/tools/kvm/virtio/pci.c >+++ b/tools/kvm/virtio/pci.c >@@ -1,4 +1,5 @@ > #include "kvm/virtio-pci.h" >+#include <stdio.h> > > #include "kvm/ioport.h" > #include "kvm/kvm.h" >@@ -31,6 +32,7 @@ static void virtio_pci__ioevent_callback(struct kvm *kvm, void *param) > ioeventfd->vtrans->virtio_ops->notify_vq(kvm, vpci->dev, ioeventfd->vq); > } > >+static int count = 5; > static int virtio_pci__init_ioeventfd(struct kvm *kvm, struct virtio_trans *vtrans, u32 vq) > { > struct ioevent ioevent; >@@ -52,7 +54,33 @@ static int virtio_pci__init_ioeventfd(struct kvm *kvm, struct virtio_trans *vtra > .fd = eventfd(0, 0), > }; > >- r = ioeventfd__add_event(&ioevent); >+ while(count < 200) { >+ ioevent = (struct ioevent) { >+ .io_addr = vpci->base_addr + VIRTIO_PCI_QUEUE_NOTIFY + 1024 * count, >+ .io_len = sizeof(u16), >+ .fn = virtio_pci__ioevent_callback, >+ //.fn_ptr = &vpci->ioeventfds[vq], >+ .fn_ptr = &vpci->ioeventfds[count], >+ .datamatch = vq, >+ .fn_kvm = kvm, >+ .fd = eventfd(0, 0), >+ }; >+ r = ioeventfd__add_event(&ioevent); >+ printf("helllo----------------%d , %d\n", count++, r); >+ } >+ >+ ioevent = (struct ioevent) { >+ .io_addr = vpci->base_addr + VIRTIO_PCI_QUEUE_NOTIFY, >+ .io_len = sizeof(u16), >+ .fn = virtio_pci__ioevent_callback, >+ .fn_ptr = &vpci->ioeventfds[vq], >+ .datamatch = vq, >+ .fn_kvm = kvm, >+ .fd = eventfd(0, 0), >+ }; >+ r = ioeventfd__add_event(&ioevent); >+ >+ printf("helllo2----------------%u , %d, %d\n", vq, vpci->base_addr, r); > if (r) > return r; > >@@ -377,4 +405,4 @@ int virtio_pci__exit(struct kvm *kvm, struct virtio_trans *vtrans) > ioeventfd__del_event(vpci->base_addr + VIRTIO_PCI_QUEUE_NOTIFY, i); > > return 0; >-} >\ No newline at end of file >+} >-- >1.7.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 802251
:
569298
| 572696