Home
last modified time | relevance | path

Searched refs:Vcpu (Results 1 – 25 of 32) sorted by relevance

12

/external/crosvm/devices/src/irqchip/
Dgunyah.rs11 use hypervisor::Vcpu;
35 fn add_vcpu(&mut self, _vcpu_id: usize, _vcpu: &dyn Vcpu) -> Result<()> { in add_vcpu()
109 fn inject_interrupts(&self, _vcpu: &dyn Vcpu) -> Result<()> { in inject_interrupts()
117 fn wait_until_runnable(&self, _vcpu: &dyn Vcpu) -> Result<VcpuRunState> { in wait_until_runnable()
Dmod.rs12 use hypervisor::Vcpu;
153 fn add_vcpu(&mut self, vcpu_id: usize, vcpu: &dyn Vcpu) -> Result<()>; in add_vcpu()
201 fn inject_interrupts(&self, vcpu: &dyn Vcpu) -> Result<()>; in inject_interrupts()
209 fn wait_until_runnable(&self, vcpu: &dyn Vcpu) -> Result<VcpuRunState>; in wait_until_runnable()
Dwhpx.rs35 use hypervisor::Vcpu;
218 fn add_vcpu(&mut self, _vcpu_id: usize, _vcpu: &dyn Vcpu) -> Result<()> { in add_vcpu()
376 fn inject_interrupts(&self, vcpu: &dyn Vcpu) -> Result<()> { in inject_interrupts()
406 fn wait_until_runnable(&self, _vcpu: &dyn Vcpu) -> Result<VcpuRunState> { in wait_until_runnable()
Duserspace.rs44 use hypervisor::Vcpu;
390 fn add_vcpu(&mut self, vcpu_id: usize, vcpu: &dyn Vcpu) -> Result<()> { in add_vcpu()
557 fn inject_interrupts(&self, vcpu: &dyn Vcpu) -> Result<()> { in inject_interrupts()
648 fn wait_until_runnable(&self, vcpu: &dyn Vcpu) -> Result<VcpuRunState> { in wait_until_runnable()
/external/crosvm/src/crosvm/plugin/
Dvcpu.rs24 use kvm::Vcpu;
107 fn get_vcpu_state(vcpu: &Vcpu, state_set: VcpuRequest_StateSet) -> SysResult<Vec<u8>> { in get_vcpu_state() argument
120 fn set_vcpu_state(vcpu: &Vcpu, state_set: VcpuRequest_StateSet, state: &[u8]) -> SysResult<()> { in set_vcpu_state() argument
400 pub fn init(&self, vcpu: &Vcpu) -> SysResult<()> { in init()
410 pub fn pre_run(&self, vcpu: &Vcpu) -> SysResult<()> { in pre_run()
425 fn process(&self, io_space: IoSpace, addr: u64, mut data: VcpuRunData, vcpu: &Vcpu) -> bool { in process()
512 pub fn io_read(&self, addr: u64, data: &mut [u8], vcpu: &Vcpu) -> bool { in io_read()
517 pub fn io_write(&self, addr: u64, data: &[u8], vcpu: &Vcpu) -> bool { in io_write()
522 pub fn mmio_read(&self, addr: u64, data: &mut [u8], vcpu: &Vcpu) -> bool { in mmio_read()
527 pub fn mmio_write(&self, addr: u64, data: &[u8], vcpu: &Vcpu) -> bool { in mmio_write()
[all …]
Dmod.rs59 use kvm::Vcpu;
298 Vcpu::set_local_immediate_exit(true); in run_vcpus()
310 let vcpu = Vcpu::new(cpu_id as c_ulong, kvm, vm).context("error creating vcpu")?; in run_vcpus()
/external/crosvm/devices/src/irqchip/kvm/
Dmod.rs13 use hypervisor::Vcpu;
44 fn add_vcpu(&mut self, vcpu_id: usize, vcpu: &dyn Vcpu) -> Result<()> { in add_vcpu()
141 fn inject_interrupts(&self, _vcpu: &dyn Vcpu) -> Result<()> { in inject_interrupts()
154 fn wait_until_runnable(&self, _vcpu: &dyn Vcpu) -> Result<VcpuRunState> { in wait_until_runnable()
Dx86_64.rs28 use hypervisor::Vcpu;
409 fn add_vcpu(&mut self, vcpu_id: usize, vcpu: &dyn Vcpu) -> Result<()> { in add_vcpu()
554 fn inject_interrupts(&self, vcpu: &dyn Vcpu) -> Result<()> { in inject_interrupts()
585 fn wait_until_runnable(&self, _vcpu: &dyn Vcpu) -> Result<VcpuRunState> { in wait_until_runnable()
/external/crosvm/kvm/tests/
Dkvm_tests.rs24 use kvm::Vcpu;
348 Vcpu::new(0, &kvm, &vm).unwrap(); in create_vcpu()
357 let vcpu = Vcpu::new(0, &kvm, &vm).unwrap(); in debugregs()
375 let vcpu = Vcpu::new(0, &kvm, &vm).unwrap(); in xcrs()
389 let vcpu = Vcpu::new(0, &kvm, &vm).unwrap(); in get_msrs()
412 let vcpu = Vcpu::new(0, &kvm, &vm).unwrap(); in get_hyperv_cpuid()
430 let vcpu = Vcpu::new(0, &kvm, &vm).unwrap(); in enable_feature()
445 let vcpu = Vcpu::new(0, &kvm, &vm).unwrap(); in mp_state()
455 let vcpu = Vcpu::new(0, &kvm, &vm).unwrap(); in set_signal_mask()
Dreal_run_adder.rs33 let vcpu = Vcpu::new(0, &kvm, &vm).expect("new vcpu failed"); in test_run()
Ddirty_log.rs36 let vcpu = Vcpu::new(0, &kvm, &vm).expect("new vcpu failed"); in test_run()
Dread_only_memory.rs38 let vcpu = Vcpu::new(0, &kvm, &vm).expect("new vcpu failed"); in test_run()
/external/crosvm/devices/src/irqchip/geniezone/
Dmod.rs17 use hypervisor::Vcpu;
156 fn add_vcpu(&mut self, vcpu_id: usize, vcpu: &dyn Vcpu) -> Result<()> { in add_vcpu()
251 fn inject_interrupts(&self, _vcpu: &dyn Vcpu) -> Result<()> { in inject_interrupts()
264 fn wait_until_runnable(&self, _vcpu: &dyn Vcpu) -> Result<VcpuRunState> { in wait_until_runnable()
/external/crosvm/x86_64/tests/integration/
Dmain.rs69 fn simple_vm_test<H, V, Vcpu, I, FV, FI>(create_vm: FV, create_irq_chip: FI) in simple_vm_test() argument
73 Vcpu: VcpuX86_64 + 'static, in simple_vm_test()
267 .downcast::<Vcpu>() in simple_vm_test()
/external/crosvm/hypervisor/src/
Daarch64.rs26 use crate::Vcpu;
98 pub trait VcpuAArch64: Vcpu {
Dlib.rs286 pub trait Vcpu: downcast_rs::DowncastSync { interface
293 fn as_vcpu(&self) -> &dyn Vcpu; in as_vcpu() argument
388 downcast_rs::impl_downcast!(sync Vcpu);
/external/crosvm/aarch64/src/
Dlib.rs369 fn build_vm<V, Vcpu>( in build_vm() argument
384 ) -> std::result::Result<RunnableLinuxVm<V, Vcpu>, Self::Error> in build_vm()
387 Vcpu: VcpuAArch64, in build_vm()
448 let vcpu: Vcpu = *vm in build_vm()
451 .downcast::<Vcpu>() in build_vm()
759 fn register_pci_device<V: VmAArch64, Vcpu: VcpuAArch64>( in register_pci_device()
760 _linux: &mut RunnableLinuxVm<V, Vcpu>, in register_pci_device() argument
/external/crosvm/arch/src/
Dlib.rs355 pub struct RunnableLinuxVm<V: VmArch, Vcpu: VcpuArch> {
381 pub vcpus: Option<Vec<Vcpu>>,
437 fn build_vm<V, Vcpu>( in build_vm() argument
453 ) -> std::result::Result<RunnableLinuxVm<V, Vcpu>, Self::Error> in build_vm()
456 Vcpu: VcpuArch; in build_vm()
484 fn register_pci_device<V: VmArch, Vcpu: VcpuArch>( in register_pci_device()
485 linux: &mut RunnableLinuxVm<V, Vcpu>, in register_pci_device() argument
629 pub fn configure_pci_device<V: VmArch, Vcpu: VcpuArch>( in configure_pci_device()
630 linux: &mut RunnableLinuxVm<V, Vcpu>, in configure_pci_device() argument
/external/crosvm/src/sys/windows/
Dgeneric.rs152 pub(super) fn handle_received_token<V: VmArch + 'static, Vcpu: VcpuArch + 'static>( in handle_received_token()
158 _guest_os: &mut RunnableLinuxVm<V, Vcpu>, in handle_received_token() argument
Drun_vcpu.rs561 pub fn run_all_vcpus<V: VmArch + 'static, Vcpu: VcpuArch + 'static>( in run_all_vcpus()
562 vcpus: Vec<Option<Vcpu>>, in run_all_vcpus() argument
564 guest_os: &RunnableLinuxVm<V, Vcpu>, in run_all_vcpus()
/external/crosvm/kvm/src/
Dlib.rs1022 pub struct Vcpu { struct
1034 impl Vcpu { argument
1038 pub fn new(id: c_ulong, kvm: &Kvm, vm: &Vm) -> Result<Vcpu> { in new() argument
1056 Ok(Vcpu { vcpu, run_mmap }) in new()
1564 impl AsRawDescriptor for Vcpu { implementation
1574 vcpu: Vcpu,
1718 type Target = Vcpu;
/external/crosvm/src/sys/
Dwindows.rs764 fn handle_readable_event<V: VmArch + 'static, Vcpu: VcpuArch + 'static>( in handle_readable_event()
772 guest_os: &mut RunnableLinuxVm<V, Vcpu>, in handle_readable_event() argument
906 fn run_control<V: VmArch + 'static, Vcpu: VcpuArch + 'static>( in run_control()
907 mut guest_os: RunnableLinuxVm<V, Vcpu>, in run_control() argument
1341 fn create_userspace_irq_chip<Vm, Vcpu>( in create_userspace_irq_chip()
1344 ) -> base::Result<UserspaceIrqChip<Vcpu>> in create_userspace_irq_chip()
1347 Vcpu: VcpuArch + 'static, in create_userspace_irq_chip()
1817 fn run_vm<Vcpu, V>( in run_vm() argument
1827 Vcpu: VcpuArch + 'static, in run_vm()
1964 let windows = Arch::build_vm::<V, Vcpu>( in run_vm()
/external/crosvm/src/crosvm/sys/
Dunix.rs1569 fn run_vm<Vcpu, V>( in run_vm() argument
1578 Vcpu: VcpuArch + 'static, in run_vm()
1976 let mut linux = Arch::build_vm::<V, Vcpu>( in run_vm()
2121 fn get_hp_bus<V: VmArch, Vcpu: VcpuArch>( in get_hp_bus()
2122 linux: &RunnableLinuxVm<V, Vcpu>, in get_hp_bus() argument
2134 fn add_hotplug_device<V: VmArch, Vcpu: VcpuArch>( in add_hotplug_device()
2135 linux: &mut RunnableLinuxVm<V, Vcpu>, in add_hotplug_device() argument
2265 fn remove_hotplug_bridge<V: VmArch, Vcpu: VcpuArch>( in remove_hotplug_bridge()
2266 linux: &RunnableLinuxVm<V, Vcpu>, in remove_hotplug_bridge() argument
2300 fn remove_hotplug_device<V: VmArch, Vcpu: VcpuArch>( in remove_hotplug_device()
[all …]
/external/crosvm/src/crosvm/sys/unix/
Dvcpu.rs41 use hypervisor::Vcpu;
71 pub fn setup_vcpu_signal_handler<T: Vcpu>(use_hypervisor_signals: bool) -> Result<()> { in setup_vcpu_signal_handler()
82 extern "C" fn handle_signal<T: Vcpu>(_: c_int) { in setup_vcpu_signal_handler()
/external/crosvm/devices/tests/irqchip/
Duserspace.rs53 use hypervisor::Vcpu;
650 impl Vcpu for FakeVcpu {
664 fn as_vcpu(&self) -> &dyn Vcpu { in as_vcpu() argument

12