KVM: add kvm_para_available to asm-generic/kvm_para.h
Subsystems (3)
PATCH 1/1 KVM: add kvm_para_available to asm-generic/kvm_para.h
According to include/uapi/linux/kvm_para.h architectures should define kvm_para_available, so add an implementation to asm-generic/kvm_para.h which just returns false.
--- include/asm-generic/kvm_para.h | 5 +++++ 1 file changed, 5 insertions(+)
include/asm-generic/kvm_para.h +5 -0
@@ -18,4 +18,9 @@ static inline unsigned int kvm_arch_para_features(void) return 0; } +static inline bool kvm_para_available (void ) +{ +return false; +} +#endif
Signature · 1 line
1.8.1.2
Quoted 4 lines · James Hogan
According to
include/uapi/linux/kvm_para.harchitectures should definekvm_para_available, so add an implementation toasm-generic/kvm_para.hwhich just returns false.
What is this fixing? The only user of kvm_para_available() that can benefit from this is in sound/pci/intel8x0.c, but I do not see follow up patch to use it there.
Quoted 25 lines
Signed-off-by James Hogan <[email protected]>Cc Marcelo Tosatti <[email protected]>Cc Gleb Natapov <[email protected]>Cc Arnd Bergmann <[email protected]>--- include/asm-generic/kvm_para.h | 5 +++++ 1 file changed, 5 insertions(+)include/asm-generic/kvm_para.h +5
-0@@ -18,4 +18,9 @@ static inline unsigned int kvm_arch_para_features(void) return 0; } +static inline bool kvm_para_available (void ) +{ +return false; +} +#endif Signature · 1 line
1.8.1.2
--
Gleb.
Quoted 8 lines · Gleb Natapov
Quoted 4 lines · James Hogan
According to
include/uapi/linux/kvm_para.harchitectures should definekvm_para_available, so add an implementation toasm-generic/kvm_para.hwhich just returns false.What is this fixing? The only user of
kvm_para_available()that can benefit from this is insound/pci/intel8x0.c, but I do not see follow up patch to use it there.
It was an unintentional config with mips + kvm + intel8x0 that hit it (I think I accidentally based my mips config off an x86_64 config). Kind of equivalent to a randconfig build failure I suppose.
Cheers
James
Quoted 6 lines · James Hogan
Quoted 5 lines · Gleb Natapov
Quoted 4 lines · James Hogan
According to
include/uapi/linux/kvm_para.harchitectures should definekvm_para_available, so add an implementation toasm-generic/kvm_para.hwhich just returns false.
Quoted 8 lines
Quoted 3 lines
What is this fixing? The only user of
kvm_para_available()that can benefit from this is insound/pci/intel8x0.c, but I do not see follow up patch to use it there.It was an unintentional config with mips + kvm + intel8x0 that hit it (I think I accidentally based my mips config off an
x86_64config). Kind of equivalent to a randconfig build failure I suppose.
Yes, I see. I will queue the fix. Thanks!
--
Gleb.