No description
Find a file
Daniel Verkamp d83234fcf7 hypervisor: remove unused Vcpu functions
These Vcpu functions are never called anywhere (some were previously
used but the uses have been removed; some were part of the initial
hypervisor API port and were never used):

- get_hyperv_cpuid()
- handle_hyperv_hypercall()
- handle_rdmsr()
- handle_wrmsr()

Additionally, these KVM-specific VM functions that are no longer called
can be removed (related to the handle_rdrmsr/handle_wrmsr functions):

- enable_userspace_msr()
- set_msr_filter()

Remove the dead code (including the corresponding VcpuExit codes where
relevant) to simplify the Vcpu API.

If these are ever re-added, they should be implemented on VcpuX86_64
rather than the generic Vcpu, as they are x86-specific features.

BUG=b:337131577
TEST=tools/dev_container tools/presubmit

Change-Id: I0187127170b30d7720212e26a84fd06773c824c4
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5499407
Reviewed-by: Idan Raiter <idanr@google.com>
Reviewed-by: Noah Gold <nkgold@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2024-05-07 18:22:14 +00:00
.cargo Upgrade rust to 1.73.0 2024-02-20 19:11:51 +00:00
.config dev_container: Pass through NEXTEST_PROFILE 2023-12-14 19:01:30 +00:00
.devcontainer dev_container: Replace better toml extension 2023-07-27 23:37:15 +00:00
.github Cleanup: Remove old, deprecated and no longer used files 2022-09-20 21:05:57 +00:00
.vscode Document feature flags and introduce new feature sets 2022-10-14 20:31:19 +00:00
aarch64 devices: Allow GPEs to wake up VCPUs 2024-05-02 01:26:42 +00:00
acpi_tables Reformat comments 2024-02-15 23:30:13 +00:00
arch devices: Allow GPEs to wake up VCPUs 2024-05-02 01:26:42 +00:00
argh_helpers Update to syn-2 2023-12-02 00:23:50 +00:00
audio_streams_conformance_test Rename "unix" to "linux" in code and docs 2023-10-11 01:15:07 +00:00
audio_util clippy: enforce safety block comments 2023-12-14 18:21:54 +00:00
base base: windows: support Sync usage of StreamChannel 2024-05-02 19:32:36 +00:00
bit_field Reformat comments 2024-02-15 23:30:13 +00:00
broker_ipc metrics: Switch metrics from Tube to SendTube 2024-04-09 01:38:03 +00:00
common tree-wide: replace data_model::zerocopy_from_*() 2024-03-13 18:03:24 +00:00
cros_async base: don't require &mut for WriteZeroesAt methods 2024-05-02 19:32:21 +00:00
cros_fdt aarch64: fdt: Fix CPU compatible to "arm,armv8" 2024-04-17 23:33:51 +00:00
cros_tracing cros_tracing: use Mutex<Option<..>> for trace marker file 2024-02-27 00:42:58 +00:00
cros_tracing_types cros_tracing_types: statically initialize Mutex 2024-03-06 18:34:55 +00:00
crosvm_cli Reformat comments 2024-02-15 23:30:13 +00:00
crosvm_control crosvm_control: Add security key attach command 2024-03-19 00:46:07 +00:00
crosvm_plugin clippy: enforce safety block comments 2023-12-14 18:21:54 +00:00
devices hypervisor: remove unused Vcpu functions 2024-05-07 18:22:14 +00:00
disk disk: remove mutex from AsyncDiskFileWrapper 2024-05-02 19:32:31 +00:00
docs/book docs: update ChromeOS developer guide links 2024-03-21 17:41:27 +00:00
e2e_tests e2e_tests: Use distinct tap name for each e2e test 2024-04-16 02:17:42 +00:00
ext2 ext2: Support customized parameters 2024-05-07 10:46:31 +00:00
fuse tree-wide: replace data_model::zerocopy_from_*() 2024-03-13 18:03:24 +00:00
fuzz base: don't require &mut for FileReadWriteAtVolatile methods 2024-05-02 19:32:17 +00:00
gpu_display gpu_display: establish crate OWNERS 2024-04-19 17:55:42 +00:00
hypervisor hypervisor: remove unused Vcpu functions 2024-05-07 18:22:14 +00:00
infra Roll recipe dependencies (trivial). 2024-05-07 18:20:56 +00:00
io_uring Reformat comments 2024-02-15 23:30:13 +00:00
jail jail: Also bind mount libdrm dir. 2024-03-27 23:40:37 +00:00
kernel_cmdline Rust 1.65: Fix clippy derive_partial_eq_without_eq lints 2022-12-01 01:32:30 +00:00
kernel_loader kernel_loader: Reserve memory according to 'image_size' header field 2024-01-31 09:15:04 +00:00
kvm hypervisor: tests: use a less-invalid fd in irqfd_resample() 2024-03-08 22:14:51 +00:00
kvm_sys kvm_sys: clean up arch-specific ioctls 2024-05-06 22:44:24 +00:00
libcras_stub devices: snd: Use PCM device client_type and stream_type for CRAS 2023-03-02 06:22:40 +00:00
linux_input_sys gpu_display_win: upstream mouse input handling code. 2024-02-29 19:29:19 +00:00
logo README: Use PNG logo image 2021-10-29 01:56:23 +00:00
media Reformat comments 2024-02-15 23:30:13 +00:00
metrics metrics: Remove MetricsRequest from vendor API 2024-04-09 01:43:33 +00:00
metrics_events devices: Add metrics for virtio and RTC wakeup 2024-04-09 01:50:13 +00:00
net_sys bindgen: update to Linux 6.6 headers 2024-01-09 00:37:43 +00:00
net_util base: Separate TimerTrait::reset into 2 functions 2024-04-18 09:23:31 +00:00
perfetto Cargo.toml: Remove unused data_model deps 2024-03-13 20:00:26 +00:00
power_monitor power_monitor: Filter out some power signals 2024-03-22 02:23:57 +00:00
prebuilts Rename "unix" to "linux" in code and docs 2023-10-11 01:15:07 +00:00
proto_build_tools Cargo.toml: upgrade protobuf 2.x -> 3.x 2023-04-28 19:32:01 +00:00
protos clippy: enforce safety block comments 2023-12-14 18:21:54 +00:00
resources Fix clippy useless_conversion into_iter() warnings 2023-11-06 19:43:56 +00:00
riscv64 hypervisor: remove gdb feature and gdbstub deps 2024-04-30 01:43:02 +00:00
rutabaga_gfx rutabaga_gfx: update Vulkano to v0.33 2024-04-24 01:59:11 +00:00
sandbox sandbox: mark Windows-specific dependencies 2024-02-26 19:07:41 +00:00
serde_keyvalue Reformat comments 2024-02-15 23:30:13 +00:00
src broker: Add handles_to_inherit as argument to spawn 2024-05-03 02:05:25 +00:00
swap base: Separate TimerTrait::reset into 2 functions 2024-04-18 09:23:31 +00:00
system_api devices: virtio-fs: enable dbus crate stdfd feature 2024-03-08 22:14:51 +00:00
tests Reformat comments 2024-02-15 23:30:13 +00:00
third_party devices: vhost-user: forbid packed virtqueues temporarily 2024-03-27 02:50:13 +00:00
tools tools/merge_bot: Don't initiate merge just for recipe roller 2024-04-09 20:58:32 +00:00
tube_transporter Cargo.toml: Remove unused data_model deps 2024-03-13 20:00:26 +00:00
usb_sys clippy: enforce safety block comments 2023-12-14 18:21:54 +00:00
usb_util clippy: enforce safety block comments 2023-12-14 18:21:54 +00:00
vendor linux: Add support for metrics 2024-04-09 01:43:39 +00:00
vfio_sys bindgen: update to Linux 6.6 headers 2024-01-09 00:37:43 +00:00
vhost clippy: enforce safety block comments 2023-12-14 18:21:54 +00:00
virtio_sys devices: virtio: Support virtio suspend 2024-05-02 01:20:09 +00:00
vm_control cmos: Extend sci resampling to rtc 2024-05-03 00:36:47 +00:00
vm_memory vm_memory: support lz4 compression for RAM snapshot 2024-03-08 22:51:26 +00:00
win_audio metrics: Remove downstream metrics dependencies 2024-04-09 01:36:24 +00:00
win_util win_util: securely zero buffers used by DPAPI. 2024-03-04 18:31:37 +00:00
x86_64 x86_64: simplify e820 memory map 2024-05-07 00:19:47 +00:00
.dockerignore add docker supported builds and tests 2019-05-15 13:36:19 -07:00
.envrc Automatically register tools/ on PATH 2023-03-03 00:33:15 +00:00
.gitattributes config: force lf as line endings 2023-11-07 17:38:58 +00:00
.gitignore Automatically register tools/ on PATH 2023-03-03 00:33:15 +00:00
.gitmodules devices: remove --software-tpm support 2023-10-02 23:28:45 +00:00
.rustfmt.toml rustfmt: wrap comments 2024-02-15 23:30:13 +00:00
ARCHITECTURE.md docs: book: update architecture docs 2023-06-01 22:37:17 +00:00
Cargo.lock hypervisor: remove gdb feature and gdbstub deps 2024-04-30 01:43:02 +00:00
Cargo.toml devices: pvclock: handle stub -> idle transition. 2024-04-22 17:40:25 +00:00
CONTRIBUTING.md docs: update ChromeOS developer guide links 2024-03-21 17:41:27 +00:00
DIR_METADATA DIR_METADATA: Add public buganizer component 2022-09-21 17:43:59 +00:00
LICENSE Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
mypy.ini Add python configs for consistency between IDE and CI 2022-08-16 18:33:23 +00:00
OWNERS Add crosvm-reviews as first code owners 2024-03-18 23:05:45 +00:00
OWNERS_COUNCIL Require council review for changes to Cargo.lock 2022-12-01 18:50:48 +00:00
PRESUBMIT.cfg Cleanup: Remove old, deprecated and no longer used files 2022-09-20 21:05:57 +00:00
pyproject.toml Add python configs for consistency between IDE and CI 2022-08-16 18:33:23 +00:00
README.chromeos.md crosvm: update book and doc links to crosvm.dev 2022-07-29 22:54:01 +00:00
README.md Fix remaining Chrome/Chromium OS instances 2023-01-03 22:14:30 +00:00
rust-toolchain Upgrade rust to 1.73.0 2024-02-20 19:11:51 +00:00

crosvm - The ChromeOS Virtual Machine Monitor

crosvm is a virtual machine monitor (VMM) based on Linuxs KVM hypervisor, with a focus on simplicity, security, and speed. crosvm is intended to run Linux guests, originally as a security boundary for running native applications on the ChromeOS platform. Compared to QEMU, crosvm doesnt emulate architectures or real hardware, instead concentrating on paravirtualized devices, such as the virtio standard.

crosvm is currently used to run Linux/Android guests on ChromeOS devices.

Logo