mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
hw/cxl/cxl-mailbox-utils: Add support for feature commands (8.2.9.6)
CXL spec 3.1 section 8.2.9.6 describes optional device specific features. CXL devices supports features with changeable attributes. Get Supported Features retrieves the list of supported device specific features. The settings of a feature can be retrieved using Get Feature and optionally modified using Set Feature. Reviewed-by: Davidlohr Bueso <dave@stgolabs.net> Reviewed-by: Fan Ni <fan.ni@samsung.com> Signed-off-by: Shiju Jose <shiju.jose@huawei.com> Link: https://lore.kernel.org/r/20240223085902.1549-2-shiju.jose@huawei.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Message-Id: <20240705123039.963781-3-Jonathan.Cameron@huawei.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
25da36d5d0
commit
d80378943a
2 changed files with 268 additions and 0 deletions
|
@ -464,6 +464,14 @@ typedef struct CXLDCRegion {
|
|||
unsigned long *blk_bitmap;
|
||||
} CXLDCRegion;
|
||||
|
||||
typedef struct CXLSetFeatureInfo {
|
||||
QemuUUID uuid;
|
||||
uint8_t data_transfer_flag;
|
||||
bool data_saved_across_reset;
|
||||
uint16_t data_offset;
|
||||
size_t data_size;
|
||||
} CXLSetFeatureInfo;
|
||||
|
||||
struct CXLType3Dev {
|
||||
/* Private */
|
||||
PCIDevice parent_obj;
|
||||
|
@ -501,6 +509,8 @@ struct CXLType3Dev {
|
|||
CXLPoisonList scan_media_results;
|
||||
bool scan_media_hasrun;
|
||||
|
||||
CXLSetFeatureInfo set_feat_info;
|
||||
|
||||
struct dynamic_capacity {
|
||||
HostMemoryBackend *host_dc;
|
||||
AddressSpace host_dc_as;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue