Upstream: https://gitlab.com/qemu-project/qemu.git Upstream-Commit: d2e570cc0f97b936902a5b1b86b73c0f5998b475
34 lines
687 B
C
34 lines
687 B
C
/*
|
|
* Specific Purpose Memory (SPM) device
|
|
*
|
|
* TYPE_MEMORY_DEVICE subclass for boot-time-only memory exposed to the
|
|
* guest as an E820 SOFT_RESERVED range with a SRAT memory-affinity entry.
|
|
*
|
|
* Copyright (c) 2026 Advanced Micro Devices, Inc.
|
|
*
|
|
* Authors:
|
|
* FangSheng Huang <[email protected]>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#ifndef QEMU_SP_MEM_H
|
|
#define QEMU_SP_MEM_H
|
|
|
|
#include "hw/core/qdev.h"
|
|
#include "qom/object.h"
|
|
|
|
#define TYPE_SP_MEM "sp-mem"
|
|
|
|
OBJECT_DECLARE_SIMPLE_TYPE(SpMemDevice, SP_MEM)
|
|
|
|
struct SpMemDevice {
|
|
DeviceState parent_obj;
|
|
|
|
HostMemoryBackend *hostmem;
|
|
uint32_t node;
|
|
uint64_t addr;
|
|
};
|
|
|
|
#endif /* QEMU_SP_MEM_H */
|