public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] always report x2apic as supported feature
@ 2009-07-12 13:10 Gleb Natapov
  2009-07-12 13:21 ` Avi Kivity
  2009-07-15 23:01 ` Marcelo Tosatti
  0 siblings, 2 replies; 7+ messages in thread
From: Gleb Natapov @ 2009-07-12 13:10 UTC (permalink / raw)
  To: avi; +Cc: kvm

We emulate x2apic in software, so host support is not required.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 00844eb..c256da7 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -1497,6 +1497,9 @@ static void do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function,
 	case 1:
 		entry->edx &= kvm_supported_word0_x86_features;
 		entry->ecx &= kvm_supported_word4_x86_features;
+		/* we support x2apic emulation even if host does not support
+		   it since we emulate x2apic in software */
+		entry->ecx |= F(X2APIC);
 		break;
 	/* function 2 entries are STATEFUL. That is, repeated cpuid commands
 	 * may return different values. This forces us to get_cpu() before
--
			Gleb.

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-07-16  6:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-12 13:10 [PATCH] always report x2apic as supported feature Gleb Natapov
2009-07-12 13:21 ` Avi Kivity
2009-07-15 23:01 ` Marcelo Tosatti
2009-07-16  1:46   ` Sheng Yang
2009-07-16  6:00     ` Gleb Natapov
2009-07-16  6:09       ` Sheng Yang
2009-07-16  6:12         ` Gleb Natapov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox