mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
kvm: Move kvm_allows_irq0_override() to target-i386, fix return type
kvm_allows_irq0_override() is a totally x86 specific concept: move it to the target-specific source file where it belongs. This means we need a new header file for the prototype: kvm_i386.h, in line with the existing kvm_ppc.h. While we are moving it, fix the return type to be 'bool' rather than 'int'. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
parent
3889c3fab1
commit
1d31f66bbc
8 changed files with 42 additions and 12 deletions
|
@ -1701,11 +1701,6 @@ int kvm_has_gsi_routing(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
int kvm_allows_irq0_override(void)
|
||||
{
|
||||
return !kvm_irqchip_in_kernel() || kvm_has_gsi_routing();
|
||||
}
|
||||
|
||||
void *kvm_vmalloc(ram_addr_t size)
|
||||
{
|
||||
#ifdef TARGET_S390X
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue