vmm(4) :Add the ukvm/Solo5 hypercall I/O ports to the list of ports to be
authormlarkin <mlarkin@openbsd.org>
Wed, 29 Nov 2017 02:56:21 +0000 (02:56 +0000)
committermlarkin <mlarkin@openbsd.org>
Wed, 29 Nov 2017 02:56:21 +0000 (02:56 +0000)
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

index 994a656..518ff86 100644 (file)
@@ -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;