summaryrefslogtreecommitdiffstats
path: root/usr.sbin/vmd/pci.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* vmd(8): provide some additional info in a debug msgmlarkin2019-10-161-3/+4
| | | | | | | Print the guest %rip when it tries to do I/O to a nonexistent port. Also convert the message to a DPRINTF so that it doesn't leak guest address information into any logging the host might be doing under normal non-debug conditions.
* vmm(8)/vmm(4): send a copy of the guest register state to vmd on exit,mlarkin2018-07-121-4/+4
| | | | | | | avoiding multiple readregs ioctls back to vmm in case register content is needed subsequently. ok phessler
* vmd already had DEBUG/DPRINTF, there is no need for VMD_DEBUG/dprintfreyk2018-07-101-3/+3
| | | | Replace all occurences of dprintf with DPRINTF (defined in proc.h).
* knfreyk2018-06-191-8/+9
|
* vmd(8): implement vmd side of ELCR registersmlarkin2018-04-271-1/+3
| | | | ok guenther
* vmd(8): Properly return the correct byte when doing byte-aligned PCImlarkin2018-02-151-2/+2
| | | | | | config space reads. ok kettenis@, ccardenas@
* vmd: send/recv pci config space instead of recreating pci devices on receivepd2017-09-171-1/+41
| | | | ok mlarkin@
* vmd: reorganize some pci config space handling code, no functional change.mlarkin2017-08-201-15/+21
| | | | | originally suggested by kettenis@, I took that diff and modified it for -current
* vmd: partially back out a change committed yesterday regarding guestmlarkin2017-08-101-11/+1
| | | | | | | changing IRQs. After discussing with kettenis, that wasn't the right way to do things, and this diff fixes that. ok kettenis
* vmd: allow guest PCI interrupt line reassignment.mlarkin2017-08-091-4/+18
| | | | | | | I also added a couple config space register names to pcireg.h to try and reduce the use of magic numbers in vmd/pci.c ok pd@
* vmd: increase the max number of disks from 2 to 4. Requires kernel rebuildmlarkin2017-07-061-2/+3
| | | | | | as a struct passed to vmm has changed size. ok deraadt, pd
* vmd(8) pci emulation fix required for upcoming option rom support.mlarkin2017-04-211-2/+2
| | | | | | | This will be used in the future to support an sgabios option rom, to do VGA text mode console redirection. ok reyk
* die whitespace die die diederaadt2017-03-271-5/+4
|
* Last bits needed to get seabios + alpine linux working. This is enoughmlarkin2017-03-251-5/+24
| | | | | | to get started and let more people help finding and fixing bugs. ok kettenis, deraadt
* Implement some missing functionality and clean up some code in vmdmlarkin2017-03-251-9/+26
| | | | | | pci emulation. ok kettenis
* updated include paths for recently moved virtio stuffmlarkin2017-01-211-2/+2
|
* Nuke some whitespace that keeps poking me in the eye as I try tokrw2017-01-171-3/+3
| | | | steal code.
* Add host side of vmmci(4) to vmd(8).reyk2017-01-131-2/+2
| | | | | | | It currently uses the device to request graceful shutdown of a VM on "vmctl stop myvm" but will be extended for reboot and a other edge cases. OK mlarkin@
* Allow 4 vio(4) interfaces in each VM. Also fix a bad interrupt assignment thatmlarkin2016-10-121-2/+22
| | | | | | | caused IRQ9 to be shared between the second disk device and the vio(4)s, which caused poor network performance. ok reyk, stefan
* change some log_warn to log_warnx and convert some integer literals tomlarkin2016-09-011-8/+8
| | | | enumerand values
* Fix 2 minor issues and a typo in a comment in the pci emulation subsystem.mlarkin2016-09-011-5/+22
| | | | | | The first issue caused trash to be returned from an i/o port read where that port was unclaimed by any emulated device. The second issue caused improper BAR sizes to be reported for unassigned device BARs.
* small bits of header cleanup; ok mlarkinderaadt2016-08-171-2/+4
|
* stdio.h is not needed here anymore.mlarkin2016-01-141-2/+1
|
* bzero -> memset for consistencymlarkin2016-01-041-2/+2
|
* spacingreyk2015-12-031-2/+2
|
* Add support for logging to stderr or syslog, and to run vmd inreyk2015-11-231-11/+10
| | | | | | foreground with -d. OK mlarkin@ jung@
* Add $ Idsreyk2015-11-221-0/+2
|
* vmd(8) - virtual machine daemon.mlarkin2015-11-221-0/+309
There is still a lot to be done, and fixed, in these userland components but I have received enough "it works, commit it" emails that it's time to finish those things in tree. discussed with many, tested by many.