History log of /cloud-hypervisor/hypervisor/src/ (Results 401 – 425 of 516)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
9c5be6f611-Feb-2021 Rob Bradford <robert.bradford@intel.com>

build: Remove unnecessary Result<> returns

If the function can never return an error this is now a clippy failure:

error: this function's return value is unnecessarily wrapped by `Result`
--> vi

build: Remove unnecessary Result<> returns

If the function can never return an error this is now a clippy failure:

error: this function's return value is unnecessarily wrapped by `Result`
--> virtio-devices/src/watchdog.rs:215:5
|
215 | / fn set_state(&mut self, state: &WatchdogState) -> io::Result<()> {
216 | | self.common.avail_features = state.avail_features;
217 | | self.common.acked_features = state.acked_features;
218 | | // When restoring enable the watchdog if it was previously enabled. We reset the timer
... |
223 | | Ok(())
224 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_wraps

Signed-off-by: Rob Bradford <robert.bradford@intel.com>

show more ...

aec0d30913-Jan-2021 Wei Liu <liuwe@microsoft.com>

hypervisor: emulator: also set ES segment in MockVMM

Some instructions, such as MOVS, need a valid ES segment.

Signed-off-by: Wei Liu <liuwe@microsoft.com>

5fc1286211-Jan-2021 Wei Liu <liuwe@microsoft.com>

hypervisor, vmm: minor changes to VmmOps

Swap the last two parameters of guest_mem_{read,write} to be consistent
with other read / write functions.

Use more descriptive parameter names.

No functio

hypervisor, vmm: minor changes to VmmOps

Swap the last two parameters of guest_mem_{read,write} to be consistent
with other read / write functions.

Use more descriptive parameter names.

No functional change.

Signed-off-by: Wei Liu <liuwe@microsoft.com>

show more ...

f4159ca030-Dec-2020 Wei Liu <liuwe@microsoft.com>

hypervisor: emulator: drop useless set_ip calls

The instruction pointer is already pointing at the instruction being
emulated.

Signed-off-by: Wei Liu <liuwe@microsoft.com>

a6b839b308-Feb-2021 Rob Bradford <robert.bradford@intel.com>

build: Update to latest kvm-ioctls

Update the version of the fork pointed to which has been rebased on the
latest upstream.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>

eee218f102-Feb-2021 Samuel Ortiz <sameo@linux.intel.com>

hypervisor: emulator: Add MOVZX unit tests

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

5ada3f5902-Feb-2021 Samuel Ortiz <sameo@linux.intel.com>

hypervisor: emulator: Emulate MOVZX

MOV R/RM is a special case of MOVZX, so we generalize the mov_r_rm macro
to make it support both instructions.

Fixes: #2227

Signed-off-by: Samuel Ortiz <sameo@l

hypervisor: emulator: Emulate MOVZX

MOV R/RM is a special case of MOVZX, so we generalize the mov_r_rm macro
to make it support both instructions.

Fixes: #2227

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

show more ...


/cloud-hypervisor/.github/workflows/quality.yaml
/cloud-hypervisor/Cargo.lock
/cloud-hypervisor/Cargo.toml
/cloud-hypervisor/arch/Cargo.toml
/cloud-hypervisor/arch/src/x86_64/interrupts.rs
/cloud-hypervisor/block_util/Cargo.toml
/cloud-hypervisor/block_util/src/fixed_vhd_async.rs
/cloud-hypervisor/block_util/src/fixed_vhd_sync.rs
/cloud-hypervisor/block_util/src/lib.rs
/cloud-hypervisor/block_util/src/raw_sync.rs
/cloud-hypervisor/block_util/src/vhd.rs
/cloud-hypervisor/devices/Cargo.toml
/cloud-hypervisor/docs/vfio.md
/cloud-hypervisor/hypervisor/Cargo.toml
arch/x86/emulator/instructions/mov.rs
arch/x86/emulator/mod.rs
/cloud-hypervisor/net_util/Cargo.toml
/cloud-hypervisor/net_util/src/open_tap.rs
/cloud-hypervisor/net_util/src/tap.rs
/cloud-hypervisor/pci/Cargo.toml
/cloud-hypervisor/qcow/Cargo.toml
/cloud-hypervisor/scripts/dev_cli.sh
/cloud-hypervisor/scripts/run_cargo_tests.sh
/cloud-hypervisor/scripts/run_integration_tests_aarch64.sh
/cloud-hypervisor/scripts/run_unit_tests.sh
/cloud-hypervisor/tests/integration.rs
/cloud-hypervisor/vhost_user_backend/Cargo.toml
/cloud-hypervisor/vhost_user_block/Cargo.toml
/cloud-hypervisor/vhost_user_net/Cargo.toml
/cloud-hypervisor/vhost_user_net/src/lib.rs
/cloud-hypervisor/virtio-devices/Cargo.toml
/cloud-hypervisor/virtio-devices/src/net.rs
/cloud-hypervisor/virtio-devices/src/seccomp_filters.rs
/cloud-hypervisor/vm-allocator/Cargo.toml
/cloud-hypervisor/vm-virtio/Cargo.toml
/cloud-hypervisor/vmm/Cargo.toml
/cloud-hypervisor/vmm/src/acpi.rs
/cloud-hypervisor/vmm/src/api/openapi/cloud-hypervisor.yaml
/cloud-hypervisor/vmm/src/config.rs
/cloud-hypervisor/vmm/src/cpu.rs
/cloud-hypervisor/vmm/src/device_manager.rs
/cloud-hypervisor/vmm/src/memory_manager.rs
/cloud-hypervisor/vmm/src/seccomp_filters.rs
/cloud-hypervisor/vmm/src/vm.rs
7659055e10-Dec-2020 Vineeth Pillai <viremana@linux.microsoft.com>

mshv: Use in-kernel ioeventfd mechanism

Signed-off-by: Vineeth Pillai <viremana@linux.microsoft.com>

5209bd6114-Jan-2021 Vineeth Pillai <viremana@linux.microsoft.com>

mshv: Use in-kernel irqfd mechanism

Convert MshvIrqRoutingEntry functions to methods as well.

Signed-off-by: Vineeth Pillai <viremana@linux.microsoft.com>

fd9972ec25-Jan-2021 Wei Liu <liuwe@microsoft.com>

hypervisor: fix exception vector numbers

According to Intel SDM, #DE should be 0 and #DB should be 1.

Signed-off-by: Wei Liu <liuwe@microsoft.com>


/cloud-hypervisor/.github/workflows/cross-build.yaml
/cloud-hypervisor/Cargo.lock
/cloud-hypervisor/Cargo.toml
/cloud-hypervisor/Jenkinsfile
/cloud-hypervisor/arch/Cargo.toml
/cloud-hypervisor/arch/src/lib.rs
/cloud-hypervisor/block_util/Cargo.toml
/cloud-hypervisor/block_util/src/async_io.rs
/cloud-hypervisor/block_util/src/lib.rs
/cloud-hypervisor/block_util/src/qcow_sync.rs
/cloud-hypervisor/block_util/src/raw_async.rs
/cloud-hypervisor/block_util/src/raw_sync.rs
/cloud-hypervisor/devices/Cargo.toml
/cloud-hypervisor/devices/src/acpi.rs
/cloud-hypervisor/devices/src/lib.rs
/cloud-hypervisor/docs/custom-image.md
/cloud-hypervisor/docs/intel_sgx.md
/cloud-hypervisor/fuzz/Cargo.toml
/cloud-hypervisor/fuzz/fuzz_targets/block.rs
/cloud-hypervisor/hypervisor/Cargo.toml
arch/x86/mod.rs
/cloud-hypervisor/net_util/Cargo.toml
/cloud-hypervisor/pci/Cargo.toml
/cloud-hypervisor/qcow/Cargo.toml
/cloud-hypervisor/resources/Dockerfile
/cloud-hypervisor/resources/linux-config-aarch64
/cloud-hypervisor/resources/linux-config-x86_64
/cloud-hypervisor/scripts/dev_cli.sh
/cloud-hypervisor/scripts/run_integration_tests_aarch64.sh
/cloud-hypervisor/scripts/run_integration_tests_windows.sh
/cloud-hypervisor/scripts/run_integration_tests_x86_64.sh
/cloud-hypervisor/scripts/sha1sums-x86_64
/cloud-hypervisor/src/bin/ch-remote.rs
/cloud-hypervisor/src/main.rs
/cloud-hypervisor/test_data/cloud-init/ubuntu/user-data
/cloud-hypervisor/tests/integration.rs
/cloud-hypervisor/vhost_user_backend/Cargo.toml
/cloud-hypervisor/vhost_user_block/Cargo.toml
/cloud-hypervisor/vhost_user_net/Cargo.toml
/cloud-hypervisor/virtio-devices/Cargo.toml
/cloud-hypervisor/virtio-devices/src/balloon.rs
/cloud-hypervisor/virtio-devices/src/block.rs
/cloud-hypervisor/virtio-devices/src/console.rs
/cloud-hypervisor/virtio-devices/src/device.rs
/cloud-hypervisor/virtio-devices/src/iommu.rs
/cloud-hypervisor/virtio-devices/src/lib.rs
/cloud-hypervisor/virtio-devices/src/mem.rs
/cloud-hypervisor/virtio-devices/src/net.rs
/cloud-hypervisor/virtio-devices/src/pmem.rs
/cloud-hypervisor/virtio-devices/src/rng.rs
/cloud-hypervisor/virtio-devices/src/seccomp_filters.rs
/cloud-hypervisor/virtio-devices/src/transport/pci_device.rs
/cloud-hypervisor/virtio-devices/src/vhost_user/blk.rs
/cloud-hypervisor/virtio-devices/src/vhost_user/fs.rs
/cloud-hypervisor/virtio-devices/src/vhost_user/net.rs
/cloud-hypervisor/virtio-devices/src/vsock/device.rs
/cloud-hypervisor/virtio-devices/src/watchdog.rs
/cloud-hypervisor/vm-allocator/Cargo.toml
/cloud-hypervisor/vm-virtio/Cargo.toml
/cloud-hypervisor/vm-virtio/src/queue.rs
/cloud-hypervisor/vmm/Cargo.toml
/cloud-hypervisor/vmm/src/api/http.rs
/cloud-hypervisor/vmm/src/api/http_endpoint.rs
/cloud-hypervisor/vmm/src/api/mod.rs
/cloud-hypervisor/vmm/src/api/openapi/cloud-hypervisor.yaml
/cloud-hypervisor/vmm/src/cpu.rs
/cloud-hypervisor/vmm/src/device_manager.rs
/cloud-hypervisor/vmm/src/lib.rs
/cloud-hypervisor/vmm/src/memory_manager.rs
/cloud-hypervisor/vmm/src/seccomp_filters.rs
/cloud-hypervisor/vmm/src/vm.rs
184baff303-Jan-2021 Rob Bradford <robert.bradford@intel.com>

hypervisor: kvm: aarch64: Use struct initialisation

error: field assignment outside of initializer for an instance created with Default::default()
Error: --> hypervisor/src/kvm/mod.rs:1239:9

hypervisor: kvm: aarch64: Use struct initialisation

error: field assignment outside of initializer for an instance created with Default::default()
Error: --> hypervisor/src/kvm/mod.rs:1239:9
|
1239 | state.mp_state = self.get_mp_state()?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D clippy::field-reassign-with-default` implied by `-D warnings`
note: consider initializing the variable with `kvm::aarch64::VcpuKvmState { mp_state: self.get_mp_state()?, ..Default::default() }` and removing relevant reassignments
--> hypervisor/src/kvm/mod.rs:1237:9
|
1237 | let mut state = CpuState::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default

Signed-off-by: Rob Bradford <robert.bradford@intel.com>

show more ...

fabd630702-Jan-2021 Rob Bradford <robert.bradford@intel.com>

misc: Remove unnecessary literal casts

Signed-off-by: Rob Bradford <robert.bradford@intel.com>

f452fe7402-Jan-2021 Rob Bradford <robert.bradford@intel.com>

hypervisor: kvm: Use struct initialiser where possible

error: field assignment outside of initializer for an instance created with Default::default()
--> hypervisor/src/kvm/mod.rs:318:9
|
318

hypervisor: kvm: Use struct initialiser where possible

error: field assignment outside of initializer for an instance created with Default::default()
--> hypervisor/src/kvm/mod.rs:318:9
|
318 | cap.cap = KVM_CAP_SPLIT_IRQCHIP;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D clippy::field-reassign-with-default` implied by `-D warnings`
note: consider initializing the variable with `kvm_bindings::kvm_enable_cap { cap: KVM_CAP_SPLIT_IRQCHIP, ..Default::default() }` and removing relevant reassignments
--> hypervisor/src/kvm/mod.rs:317:9
|
317 | let mut cap: kvm_enable_cap = Default::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default

Signed-off-by: Rob Bradford <robert.bradford@intel.com>

show more ...

21dcac7714-Dec-2020 Samuel Ortiz <sameo@linux.intel.com>

hypervisor: Bump iced-x86 to 1.10.0

And fix related warnings: op_kind and op_register are being deprecated
as they might panic.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Ro

hypervisor: Bump iced-x86 to 1.10.0

And fix related warnings: op_kind and op_register are being deprecated
as they might panic.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Rob Bradford <robert.bradford@intel.com>

show more ...

8c85dd3210-Dec-2020 Muminul Islam <muislam@microsoft.com>

hypervisor: Move msr and msr_data macro to arch/x86

Currently these two macros(msr, msr_data) reside both on kvm and mshv
module. Definition is same for both module. Moving them to arch/x86
module e

hypervisor: Move msr and msr_data macro to arch/x86

Currently these two macros(msr, msr_data) reside both on kvm and mshv
module. Definition is same for both module. Moving them to arch/x86
module eliminates redundancy and makes more sense.

Signed-off-by: Muminul Islam <muislam@microsoft.com>

show more ...

aac86f4510-Dec-2020 Muminul Islam <muislam@microsoft.com>

hypervisor: Fix clippy errors in the mshv module

Signed-off-by: Muminul Islam <muislam@microsoft.com>

ef3fad8304-Dec-2020 Muminul Islam <muislam@microsoft.com>

hypervisor: mshv: Implement CPU state for MshvVcpu

Signed-off-by: Muminul Islam <muislam@microsoft.com>

2b42f6c804-Dec-2020 Muminul Islam <muislam@microsoft.com>

hypervisor: mhsv: Implement CPU run loop

Handle CPU exits, adding instruction emulations.
Keep CPU specific data inside vmm for later use.

Co-Developed-by: Nuno Das Neves <nudasnev@microsoft.com>
S

hypervisor: mhsv: Implement CPU run loop

Handle CPU exits, adding instruction emulations.
Keep CPU specific data inside vmm for later use.

Co-Developed-by: Nuno Das Neves <nudasnev@microsoft.com>
Signed-off-by: Nuno Das Neves <nudasnev@microsoft.com>
Co-Developed-by: Praveen Paladugu <prapal@microsoft.com>
Signed-off-by: Praveen Paladugu <prapal@microsoft.com>
Co-Developed-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Co-Developed-by: Wei Liu <liuwe@microsoft.com>
Signed-off-by: Wei Liu <liuwe@microsoft.com>
Signed-off-by: Muminul Islam <muislam@microsoft.com>

show more ...

7acb5c6404-Dec-2020 Muminul Islam <muislam@microsoft.com>

hypervisor, mshv: Define MshvEmulatorContext

This patch adds the definition and implementation
MshvEmulatorContext which is platform emulation for Hyper-V.

Co-Developed-by: Samuel Ortiz <sameo@linu

hypervisor, mshv: Define MshvEmulatorContext

This patch adds the definition and implementation
MshvEmulatorContext which is platform emulation for Hyper-V.

Co-Developed-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Co-Developed-by: Wei Liu <liuwe@microsoft.com>
Signed-off-by: Wei Liu <liuwe@microsoft.com>
Signed-off-by: Muminul Islam <muislam@microsoft.com>

show more ...

63f356b704-Dec-2020 Muminul Islam <muislam@microsoft.com>

hypervisor: mhsv: Define software emulated TLB

A software emulated TLB. This is mostly used by
the instruction emulator to cache gva to gpa
translations passed from the hypervisor.

Co-Developed-by:

hypervisor: mhsv: Define software emulated TLB

A software emulated TLB. This is mostly used by
the instruction emulator to cache gva to gpa
translations passed from the hypervisor.

Co-Developed-by: Nuno Das Neves <nudasnev@microsoft.com>
Signed-off-by: Nuno Das Neves <nudasnev@microsoft.com>
Co-Developed-by: Praveen Paladugu <prapal@microsoft.com>
Signed-off-by: Praveen Paladugu <prapal@microsoft.com>
Co-Developed-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Co-Developed-by: Wei Liu <liuwe@microsoft.com>
Signed-off-by: Wei Liu <liuwe@microsoft.com>
Signed-off-by: Muminul Islam <muislam@microsoft.com>

show more ...

fd0ef6cf04-Dec-2020 Muminul Islam <muislam@microsoft.com>

hypervisor: mshv: Emulate IrqFd and IOEventFd for mshv module

We don't have IrqFd and IOEventFd support in the kernel for now.
So an emulation layer is needed. In the future, we will be adding this

hypervisor: mshv: Emulate IrqFd and IOEventFd for mshv module

We don't have IrqFd and IOEventFd support in the kernel for now.
So an emulation layer is needed. In the future, we will be adding this
support in the kernel.

Co-Developed-by: Wei Liu <liuwe@microsoft.com>
Signed-off-by: Wei Liu <liuwe@microsoft.com>
Signed-off-by: Muminul Islam <muislam@microsoft.com>

show more ...

286a23fb04-Dec-2020 Muminul Islam <muislam@microsoft.com>

hypervisor: mshv: Add vmmops to MshvVm struct

vmmops trait object is needed to get access some
of the upper level vmm functionalities i.e guest
memory access, IO read write etc.

Co-Developed-by: Pr

hypervisor: mshv: Add vmmops to MshvVm struct

vmmops trait object is needed to get access some
of the upper level vmm functionalities i.e guest
memory access, IO read write etc.

Co-Developed-by: Praveen Paladugu <prapal@microsoft.com>
Signed-off-by: Praveen Paladugu <prapal@microsoft.com>
Signed-off-by: Muminul Islam <muislam@microsoft.com>

show more ...

3a93487b04-Dec-2020 Muminul Islam <muislam@microsoft.com>

hypervisor: mshv: Add Microsoft Hypervisor specific data to Mshv{Vm,Vcpu}

Adding hv_state (hyperv state) to Vm and Vcpu struct for mshv.
This state is needed to keep some kernel data(for now hyperca

hypervisor: mshv: Add Microsoft Hypervisor specific data to Mshv{Vm,Vcpu}

Adding hv_state (hyperv state) to Vm and Vcpu struct for mshv.
This state is needed to keep some kernel data(for now hypercall page)
in the vmm.

Co-Developed-by: Praveen Paladugu <prapal@microsoft.com>
Signed-off-by: Praveen Paladugu <prapal@microsoft.com>
Signed-off-by: Muminul Islam <muislam@microsoft.com>

show more ...

23c46b1603-Dec-2020 Muminul Islam <muislam@microsoft.com>

hypervisor, vmm: Implement the mshv module and add mshv support in vmm

Implement hypervisor, Vm, Vcpu crate at a minimal
functionalities. Also adds the mshv feature gate,
separates out the functiona

hypervisor, vmm: Implement the mshv module and add mshv support in vmm

Implement hypervisor, Vm, Vcpu crate at a minimal
functionalities. Also adds the mshv feature gate,
separates out the functionalities between kvm and
mshv inside the vmm crate.

Co-Developed-by: Nuno Das Neves <nudasnev@microsoft.com>
Signed-off-by: Nuno Das Neves <nudasnev@microsoft.com>
Co-Developed-by: Praveen Paladugu <prapal@microsoft.com>
Signed-off-by: Praveen Paladugu <prapal@microsoft.com>
Co-Developed-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Co-Developed-by: Wei Liu <liuwe@microsoft.com>
Signed-off-by: Wei Liu <liuwe@microsoft.com>
Signed-off-by: Muminul Islam <muislam@microsoft.com>

show more ...

f4af668d05-Dec-2020 Muminul Islam <muislam@microsoft.com>

hypervisor, vmm: Implement MsiInterruptOps for mshv

Co-Developed-by: Wei Liu <liuwe@microsoft.com>
Signed-off-by: Wei Liu <liuwe@microsoft.com>
Signed-off-by: Muminul Islam <muislam@microsoft.com>

1...<<1112131415161718192021