mirror of
https://github.com/qemu/qemu.git
synced 2026-07-18 22:44:47 +00:00
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>
21 lines
402 B
C
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 */
|