mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
qdev/compat: compat property infrastructure.
This add support for switching devices into a compatibility mode using device properties. Machine types can have a list of properties for specific devices attached to allow the easy creation of machine types compatible to older qemu versions. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
81ebb98b24
commit
b6b6114460
5 changed files with 41 additions and 0 deletions
|
@ -3,6 +3,8 @@
|
|||
#ifndef HW_BOARDS_H
|
||||
#define HW_BOARDS_H
|
||||
|
||||
#include "qdev.h"
|
||||
|
||||
typedef void QEMUMachineInitFunc(ram_addr_t ram_size,
|
||||
const char *boot_device,
|
||||
const char *kernel_filename,
|
||||
|
@ -17,6 +19,7 @@ typedef struct QEMUMachine {
|
|||
int use_scsi;
|
||||
int max_cpus;
|
||||
int is_default;
|
||||
CompatProperty *compat_props;
|
||||
struct QEMUMachine *next;
|
||||
} QEMUMachine;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue