From c970a442700e4dfa33784ba852f4e114baa035ec Mon Sep 17 00:00:00 2001 From: mlarkin Date: Wed, 29 Nov 2017 02:56:21 +0000 Subject: [PATCH] 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). --- sys/arch/amd64/amd64/vmm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 * @@ -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; -- 2.20.1