KVM: PPC: eliminate unnecessary duplicate constants
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 19 Jan 2017 21:06:37 +0000 (22:06 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 19 Jan 2017 21:06:53 +0000 (22:06 +0100)
These are not needed since linux-headers/ provides up-to-date definitions.
The constants are in linux-headers/asm-powerpc/kvm.h.

The sole users, hw/intc/xics_kvm.c and target/ppc/kvm.c, include asm/kvm.h
via sysemu/kvm.h->linux/kvm.h.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/ppc/kvm_ppc.h

index bd1d78bfbe33b4892bd8cb6685d7d586ee4fb84d..4b432839131fd9a59dd45b5fae7efb6bd411d17e 100644 (file)
@@ -315,16 +315,4 @@ static inline void kvmppc_icbi_range(PowerPCCPU *cpu, uint8_t *addr, int len)
 
 #endif  /* CONFIG_KVM */
 
-#ifndef KVM_INTERRUPT_SET
-#define KVM_INTERRUPT_SET -1
-#endif
-
-#ifndef KVM_INTERRUPT_UNSET
-#define KVM_INTERRUPT_UNSET -2
-#endif
-
-#ifndef KVM_INTERRUPT_SET_LEVEL
-#define KVM_INTERRUPT_SET_LEVEL -3
-#endif
-
 #endif /* KVM_PPC_H */