Skip to contentSkip to conversation

KVM: add kvm_para_available to asm-generic/kvm_para.h

PATCH In review James Hogan 2 participants 4 messages May 22, 2013 – Jun 5, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

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
index 9d96605..fa25bec 100644
@@ -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
#1 lore raw
Quoted 4 lines · James Hogan

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.

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
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
index 9d96605..fa25bec 100644
@@ -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.

#2 lore raw
Quoted 8 lines · Gleb Natapov
Quoted 4 lines · James Hogan

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.

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.

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

#3 lore raw
Quoted 6 lines · James Hogan
Quoted 5 lines · Gleb Natapov
Quoted 4 lines · James Hogan

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.

Quoted 8 lines
Quoted 3 lines

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.

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.

Yes, I see. I will queue the fix. Thanks!

--
Gleb.