From 0eab2803339ae9b5c24e750f95cae065f65704ad Mon Sep 17 00:00:00 2001 From: mlarkin Date: Wed, 12 Oct 2016 06:56:54 +0000 Subject: Allow 4 vio(4) interfaces in each VM. Also fix a bad interrupt assignment that caused IRQ9 to be shared between the second disk device and the vio(4)s, which caused poor network performance. ok reyk, stefan --- usr.sbin/vmd/vmm.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'usr.sbin/vmd/vmm.c') diff --git a/usr.sbin/vmd/vmm.c b/usr.sbin/vmd/vmm.c index b4ebbb70f38..bd874cdb75d 100644 --- a/usr.sbin/vmd/vmm.c +++ b/usr.sbin/vmd/vmm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmm.c,v 1.49 2016/10/06 20:41:28 reyk Exp $ */ +/* $OpenBSD: vmm.c,v 1.50 2016/10/12 06:56:54 mlarkin Exp $ */ /* * Copyright (c) 2015 Mike Larkin @@ -1349,9 +1349,8 @@ vcpu_exit(struct vm_run_params *vrp) __progname, vrp->vrp_exit_reason); } - /* XXX this may not be irq 9 all the time */ - if (vionet_process_rx()) - vcpu_assert_pic_irq(vrp->vrp_vm_id, vrp->vrp_vcpu_id, 9); + /* Process any pending traffic */ + vionet_process_rx(vrp->vrp_vm_id); vrp->vrp_continue = 1; -- cgit v1.2.3-59-g8ed1b