|
From: | Paolo Bonzini |
Subject: | [Qemu-devel] Re: [PATCH 1/7] Only call kvm_set_irqfd() if CONFIG_KVM is defined |
Date: | Tue, 15 Jun 2010 15:48:50 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-3.fc13 Lightning/1.0b2pre Thunderbird/3.0.4 |
On 06/15/2010 03:40 PM, Jes Sorensen wrote:
On 06/15/10 15:31, Paolo Bonzini wrote:On 06/15/2010 01:04 PM, address@hidden wrote:From: Jes Sorensen<address@hidden> Only call kvm_set_irqfd() if CONFIG_KVM is defined to avoid breaking the build for non x86.You can just add a stub to kvm-stub.c that returns -ENOSYS. PaoloIt's more than that, the code also uses bits in the msix code that isn't globally available.
I see now. BTW, my eventnotifier series conflicts with this part of qemu-kvm, so it's probably better if I work that series out in qemu-kvm first and then upstream. As I would touch this code anyway, I think your patch is fine even if it were be only a stopgap measure.
Maybe the right fix, which I could include in my series, is to change kvm_set_irqfd's calling convention to be like this:
int r = kvm_set_irqfd(&dev->msix_irq_entries[vector], event_notifier_get_fd(notifier), !masked); and extract the gsi in the function. Michael, does this make any sense? Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |