diff options
| author | 2018-07-12 10:15:44 +0000 | |
|---|---|---|
| committer | 2018-07-12 10:15:44 +0000 | |
| commit | 02ee787fcd78d11b22dcab625f1f53fd122b6cd9 (patch) | |
| tree | 5c696e1af8ef99114bac6d50e87686b774b6050f /usr.sbin/vmd/pci.c | |
| parent | rc(8) infrastructure for rad (diff) | |
| download | wireguard-openbsd-02ee787fcd78d11b22dcab625f1f53fd122b6cd9.tar.xz wireguard-openbsd-02ee787fcd78d11b22dcab625f1f53fd122b6cd9.zip | |
vmm(8)/vmm(4): send a copy of the guest register state to vmd on exit,
avoiding multiple readregs ioctls back to vmm in case register content
is needed subsequently.
ok phessler
Diffstat (limited to 'usr.sbin/vmd/pci.c')
| -rw-r--r-- | usr.sbin/vmd/pci.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/vmd/pci.c b/usr.sbin/vmd/pci.c index 6395c981a2e..ef7053e9594 100644 --- a/usr.sbin/vmd/pci.c +++ b/usr.sbin/vmd/pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci.c,v 1.26 2018/07/10 20:43:15 reyk Exp $ */ +/* $OpenBSD: pci.c,v 1.27 2018/07/12 10:15:44 mlarkin Exp $ */ /* * Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org> @@ -228,7 +228,7 @@ pci_init(void) void pci_handle_address_reg(struct vm_run_params *vrp) { - union vm_exit *vei = vrp->vrp_exit; + struct vm_exit *vei = vrp->vrp_exit; /* * vei_dir == VEI_DIR_OUT : out instruction @@ -253,7 +253,7 @@ pci_handle_io(struct vm_run_params *vrp) int i, j, k, l; uint16_t reg, b_hi, b_lo; pci_iobar_fn_t fn; - union vm_exit *vei = vrp->vrp_exit; + struct vm_exit *vei = vrp->vrp_exit; uint8_t intr, dir; k = -1; @@ -303,7 +303,7 @@ pci_handle_io(struct vm_run_params *vrp) void pci_handle_data_reg(struct vm_run_params *vrp) { - union vm_exit *vei = vrp->vrp_exit; + struct vm_exit *vei = vrp->vrp_exit; uint8_t b, d, f, o, baridx, ofs, sz; int ret; pci_cs_fn_t csfunc; |
