summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormlarkin <mlarkin@openbsd.org>2017-11-29 02:56:21 +0000
committermlarkin <mlarkin@openbsd.org>2017-11-29 02:56:21 +0000
commitc970a442700e4dfa33784ba852f4e114baa035ec (patch)
tree69e761274439c3331a6063a534fdce25b3555432
parentadd an adaptive polling mode when no interrupt handler is available, (diff)
downloadwireguard-openbsd-c970a442700e4dfa33784ba852f4e114baa035ec.tar.xz
wireguard-openbsd-c970a442700e4dfa33784ba852f4e114baa035ec.zip
vmm(4) :Add the ukvm/Solo5 hypercall I/O ports to the list of ports to be
passed through to userspace. When not using ukvm, if a guest does I/O to these ports, vmd(8) will just discard the I/O. Thanks to Adam Steen for helping test these past few diffs, in order to get ukvm working on vmm(4).
-rw-r--r--sys/arch/amd64/amd64/vmm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/amd64/amd64/vmm.c b/sys/arch/amd64/amd64/vmm.c
index 994a656da6b..518ff86dc45 100644
--- a/sys/arch/amd64/amd64/vmm.c
+++ b/sys/arch/amd64/amd64/vmm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmm.c,v 1.178 2017/11/29 02:46:10 mlarkin Exp $ */
+/* $OpenBSD: vmm.c,v 1.179 2017/11/29 02:56:21 mlarkin Exp $ */
/*
* Copyright (c) 2014 Mike Larkin <mlarkin@openbsd.org>
*
@@ -4846,6 +4846,7 @@ svm_handle_inout(struct vcpu *vcpu)
case 0x3f8 ... 0x3ff:
case 0xcf8:
case 0xcfc ... 0xcff:
+ case 0x500 ... 0x50f:
case VMM_PCI_IO_BAR_BASE ... VMM_PCI_IO_BAR_END:
ret = EAGAIN;
break;
@@ -4926,6 +4927,7 @@ vmx_handle_inout(struct vcpu *vcpu)
case 0x3f8 ... 0x3ff:
case 0xcf8:
case 0xcfc ... 0xcff:
+ case 0x500 ... 0x50f:
case VMM_PCI_IO_BAR_BASE ... VMM_PCI_IO_BAR_END:
ret = EAGAIN;
break;