crosvm/devices/src
Chuanxiao Dong d446861e27 coiommu: expose policy parameter to allow user to set through cmdline
Add a crosvm parameter to allow user to sepcify the coiommu unpin
policy. Besides unpin the pages when balloon inflate, coiommu also
supports to periodically unpin with a LRU policy.

The usage is like this:
"--coiommu unpin_policy=lru,unpin_interval=10,unpin_limit=8192"
which means to use LRU unpin policy with unpin interval is 10 seconds
and the unpin count limit for each cycle is 8192 pages.

Without specify the parameter, coiommu will use the default
configuration which is to turn off the periodically unpin.

BUG=b:188481989
TEST=Boot a VM with coiommu lru unpin policy + pass through devices.

Change-Id: I10414cc6b2520b804685450dfd1560cfe49455a7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3292938
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: David Stevens <stevensd@chromium.org>
2022-01-22 06:47:55 +00:00
..
irqchip Update to the latest pKVM ABI. 2022-01-04 19:35:27 +00:00
pci coiommu: expose policy parameter to allow user to set through cmdline 2022-01-22 06:47:55 +00:00
platform crosvm: Extend VmMemoryRequest to support read_only map 2022-01-21 07:11:43 +00:00
register_space
usb devices: choose PCI interrupt pin based on function 2022-01-20 19:40:08 +00:00
utils devices: event_loop: delete hung-up events 2021-12-15 19:34:07 +00:00
virtio balloon: add a tube for sending unpin request 2022-01-22 06:46:08 +00:00
acpi.rs acpi: expose PCI reset register in ACPI 2021-12-08 06:33:00 +00:00
bat.rs
bus.rs devices:pci: Destroy the children devices at specific config write 2021-11-19 22:10:14 +00:00
cmos.rs
direct_io.rs crosvm: use BusRange in DirectIoOption. 2021-12-08 00:22:43 +00:00
direct_irq.rs
i8042.rs
lib.rs coiommu: expose policy parameter to allow user to set through cmdline 2022-01-22 06:47:55 +00:00
pit.rs
pl030.rs
proxy.rs Revert "Conditionally apply linux-only operations" 2021-12-02 14:15:17 +00:00
serial.rs Update to the latest pKVM ABI. 2022-01-04 19:35:27 +00:00
serial_device.rs Update to the latest pKVM ABI. 2022-01-04 19:35:27 +00:00
vfio.rs coiommu: enable coiommu 2022-01-22 06:46:46 +00:00