mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
kvm: require KVM_CAP_IOEVENTFD and KVM_CAP_IOEVENTFD_ANY_LENGTH
KVM_CAP_IOEVENTFD_ANY_LENGTH was added in Linux 4.4, released in 2016. Assume that it is present. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
5d9ec1f4c7
commit
126e7f7803
9 changed files with 18 additions and 78 deletions
|
@ -245,7 +245,6 @@ static void pci_testdev_realize(PCIDevice *pci_dev, Error **errp)
|
|||
uint8_t *pci_conf;
|
||||
char *name;
|
||||
int r, i;
|
||||
bool fastmmio = kvm_ioeventfd_any_length_enabled();
|
||||
|
||||
pci_conf = pci_dev->config;
|
||||
|
||||
|
@ -279,7 +278,7 @@ static void pci_testdev_realize(PCIDevice *pci_dev, Error **errp)
|
|||
g_free(name);
|
||||
test->hdr->offset = cpu_to_le32(IOTEST_SIZE(i) + i * IOTEST_ACCESS_WIDTH);
|
||||
test->match_data = strcmp(IOTEST_TEST(i), "wildcard-eventfd");
|
||||
if (fastmmio && IOTEST_IS_MEM(i) && !test->match_data) {
|
||||
if (IOTEST_IS_MEM(i) && !test->match_data) {
|
||||
test->size = 0;
|
||||
} else {
|
||||
test->size = IOTEST_ACCESS_WIDTH;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue