Files
qemu/include/hw/nitro/machine.h
Alexander Graf 0e7f6f6359 hw/nitro: Add nitro machine
Add a machine model to spawn a Nitro Enclave. Unlike the existing -M
nitro-enclave, this machine model works exclusively with the -accel
nitro accelerator to drive real Nitro Enclave creation. It supports
memory allocation, number of CPU selection, both x86_64 as well as
aarch64, implements the Enclave heartbeat logic and debug serial
console.

To use it, create an EIF file and run

  $ qemu-system-x86_64 -accel nitro,debug-mode=on -M nitro -nographic \
                       -kernel test.eif

or

  $ qemu-system-aarch64 -accel nitro,debug-mode=on -M nitro -nographic \
                        -kernel test.eif

Signed-off-by: Alexander Graf <graf@amazon.com>

Link: https://lore.kernel.org/r/20260225220807.33092-9-graf@amazon.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2026-02-27 14:22:07 +01:00

21 lines
402 B
C

/*
* Nitro Enclaves (accel) machine
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef HW_NITRO_MACHINE_H
#define HW_NITRO_MACHINE_H
#include "hw/core/boards.h"
#include "qom/object.h"
#define TYPE_NITRO_MACHINE MACHINE_TYPE_NAME("nitro")
OBJECT_DECLARE_SIMPLE_TYPE(NitroMachineState, NITRO_MACHINE)
struct NitroMachineState {
MachineState parent;
};
#endif /* HW_NITRO_MACHINE_H */