| /* |
| * QEMU MSHV support |
| * |
| * Copyright Microsoft, Corp. 2025 |
| * |
| * Authors: Ziqiao Zhou <ziqiaozhou@microsoft.com> |
| * Magnus Kulke <magnuskulke@microsoft.com> |
| * Jinank Jain <jinankjain@microsoft.com> |
| * |
| * SPDX-License-Identifier: GPL-2.0-or-later |
| * |
| */ |
| |
| #ifndef QEMU_MSHV_INT_H |
| #define QEMU_MSHV_INT_H |
| |
| struct AccelCPUState { |
| int cpufd; |
| bool dirty; |
| }; |
| |
| typedef struct MshvMemoryListener { |
| MemoryListener listener; |
| int as_id; |
| } MshvMemoryListener; |
| |
| typedef struct MshvAddressSpace { |
| MshvMemoryListener *ml; |
| AddressSpace *as; |
| } MshvAddressSpace; |
| |
| struct MshvState { |
| AccelState parent_obj; |
| int vm; |
| MshvMemoryListener memory_listener; |
| /* number of listeners */ |
| int nr_as; |
| MshvAddressSpace *as; |
| }; |
| |
| #endif |