| 1 | /* |
| 2 | * Guest driven VM launch state update device via IGVM. |
| 3 | * For details and specification, please look at docs/specs/vmlaunchupdate.rst. |
| 4 | * |
| 5 | * Copyright (C) 2026 Red Hat, Inc. |
| 6 | * |
| 7 | * Authors: Ani Sinha <anisinha@redhat.com> |
| 8 | * |
| 9 | * SPDX-License-Identifier: GPL-2.0-or-later |
| 10 | * |
| 11 | */ |
| 12 | #ifndef VMLAUNCHUPDATE_H |
| 13 | #define VMLAUNCHUPDATE_H |
| 14 | |
| 15 | #include "hw/core/qdev.h" |
| 16 | #include "qom/object.h" |
| 17 | #include "qemu/units.h" |
| 18 | #include "system/igvm-cfg.h" |
| 19 | #include "standard-headers/misc/vmlaunchupdate.h" |
| 20 | |
| 21 | #define TYPE_VMLAUNCHUPDATE "vm-launch-update" |
| 22 | |
| 23 | typedef struct VMLaunchUpdateState { |
| 24 | DeviceState parent_obj; |
| 25 | VMLaunchUpdate launch_update; |
| 26 | bool disabled; |
| 27 | bool host_igvm_on_reset; |
| 28 | ResettableState reset_state; |
| 29 | } VMLaunchUpdateState; |
| 30 | |
| 31 | |
| 32 | typedef struct VMLaunchUpdateStateClass { |
| 33 | ObjectClass parent_class; |
| 34 | } VMLaunchUpdateStateClass; |
| 35 | |
| 36 | OBJECT_DECLARE_SIMPLE_TYPE(VMLaunchUpdateState, VMLAUNCHUPDATE); |
| 37 | |
| 38 | #endif |