acrn-hypervisor/devicemodel
Shiqing Gao 11c8907464 dm: virtio-blk: fix virtio_blk_ops bug
When multiple virtio-blk instances are created for one VM,
using the same `static struct virtio_ops virtio_blk_ops` for all instances
is buggy. It only works when all instances are created with the same number
of the virtqueues.

This patch fixes this issue by introducing a member in `struct virtio_blk`
to store the ops info for each virtio-blk instance.

Tracked-On: #8612

Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Acked-by: Wang, Yu1 <yu1.wang@intel.com>
2024-06-05 15:23:33 +08:00
..
arch/x86 dm: vm_event: send poweroff event on pm port write 2024-02-01 17:01:31 +08:00
bios OVMF release v3.0 2022-03-31 09:06:34 +08:00
core dm: update the `iothread` option to specify the CPU affinity 2024-06-05 15:23:33 +08:00
hw dm: virtio-blk: fix virtio_blk_ops bug 2024-06-05 15:23:33 +08:00
include dm: update the `iothread` option to specify the CPU affinity 2024-06-05 15:23:33 +08:00
lib Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
log Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
Makefile dm: block_if: add the io_uring support 2024-06-05 15:23:33 +08:00
README.rst doc: terminology cleanup in DM readme 2021-11-24 06:29:25 -08:00
samples acrn-config: Reorg config tool folder 2021-01-27 11:08:28 +08:00

README.rst

ACRN Device Model
#################

Introduction
============

The ACRN Device Model provides **device sharing** capabilities between the
Service VM and post-launched User VMs. It is a component that is used in
conjunction with the `ACRN Hypervisor`_ and is installed within the Service
VM.

.. _`ACRN Hypervisor`: https://github.com/projectacrn/acrn-hypervisor