mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
machine: allowed/required kernel-irqchip support
The code using kernel-irqchip property requires 'allowed/required' functionality. Replace machine's kernel_irqchip field with two fields representing the new functionality and expose them through wrappers. Signed-off-by: Marcel Apfelbaum <marcel@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
8caff63699
commit
d8870d0217
2 changed files with 19 additions and 10 deletions
|
@ -67,6 +67,8 @@ extern MachineState *current_machine;
|
|||
|
||||
bool machine_usb(MachineState *machine);
|
||||
bool machine_iommu(MachineState *machine);
|
||||
bool machine_kernel_irqchip_allowed(MachineState *machine);
|
||||
bool machine_kernel_irqchip_required(MachineState *machine);
|
||||
|
||||
/**
|
||||
* MachineClass:
|
||||
|
@ -125,7 +127,8 @@ struct MachineState {
|
|||
/*< public >*/
|
||||
|
||||
char *accel;
|
||||
bool kernel_irqchip;
|
||||
bool kernel_irqchip_allowed;
|
||||
bool kernel_irqchip_required;
|
||||
int kvm_shadow_mem;
|
||||
char *dtb;
|
||||
char *dumpdtb;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue