diff options
| author | Kane-Chen-AS <kane_chen@aspeedtech.com> | 2025-08-12 17:40:01 +0800 |
|---|---|---|
| committer | Cédric Le Goater <clg@redhat.com> | 2025-09-29 18:00:20 +0200 |
| commit | c6b4279a9240a838632e2d689a138da96545c540 (patch) | |
| tree | 463d91ed18d72102ef0e01a2f5e3af647b83b26f /scripts/modules/module_block.py | |
| parent | fe4159cb34f36a63a1759b907f51f8d458f5c940 (diff) | |
| download | focaccia-qemu-c6b4279a9240a838632e2d689a138da96545c540.tar.gz focaccia-qemu-c6b4279a9240a838632e2d689a138da96545c540.zip | |
hw/nvram/aspeed_otp: Add 'drive' property to support block backend
This patch introduces a 'drive' property to the Aspeed OTP device,
allowing it to be backed by a block device. Users can now preload
OTP data via QEMU CLI using a block backend.
Example usage:
./qemu-system-arm \
-blockdev driver=file,filename=otpmem.img,node-name=otp \
-global aspeed-otp.drive=otp \
...
If the drive is provided, its content will be loaded as the initial OTP
state. Otherwise, an internal memory buffer will be used.
Signed-off-by: Kane-Chen-AS <kane_chen@aspeedtech.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20250812094011.2617526-5-kane_chen@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'scripts/modules/module_block.py')
0 files changed, 0 insertions, 0 deletions