public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86-64: fix HYPERVISOR_update_descriptor()
@ 2009-03-12 10:36 Jan Beulich
  2009-03-12 10:54 ` Ingo Molnar
  0 siblings, 1 reply; 8+ messages in thread
From: Jan Beulich @ 2009-03-12 10:36 UTC (permalink / raw)
  To: mingo, tglx, hpa; +Cc: jeremy.fitzhardinge, linux-kernel

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Acked-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>

---
 arch/x86/include/asm/xen/hypercall.h |    2 ++
 1 file changed, 2 insertions(+)

--- linux-2.6.29-rc7/arch/x86/include/asm/xen/hypercall.h	2009-03-11 17:52:10.000000000 +0100
+++ 2.6.29-rc7-x86_64-xen-update-descr/arch/x86/include/asm/xen/hypercall.h	2009-02-13 11:41:39.000000000 +0100
@@ -296,6 +296,8 @@ HYPERVISOR_get_debugreg(int reg)
 static inline int
 HYPERVISOR_update_descriptor(u64 ma, u64 desc)
 {
+	if (sizeof(u64) == sizeof(long))
+		return _hypercall2(int, update_descriptor, ma, desc);
 	return _hypercall4(int, update_descriptor, ma, ma>>32, desc, desc>>32);
 }
 




^ permalink raw reply	[flat|nested] 8+ messages in thread
* [PATCH] x86-64: fix HYPERVISOR_update_descriptor()
@ 2008-12-16 11:37 Jan Beulich
  2008-12-16 17:55 ` Jeremy Fitzhardinge
  0 siblings, 1 reply; 8+ messages in thread
From: Jan Beulich @ 2008-12-16 11:37 UTC (permalink / raw)
  To: Jeremy Fitzhardinge; +Cc: mingo, tglx, linux-kernel, hpa

Signed-off-by: Jan Beulich <jbeulich@novell.com>

---
 arch/x86/include/asm/xen/hypercall.h |    2 ++
 1 file changed, 2 insertions(+)

--- linux-2.6.28-rc8/arch/x86/include/asm/xen/hypercall.h	2008-12-11 14:45:37.000000000 +0100
+++ 2.6.28-rc8-x86_64-xen-update-descr/arch/x86/include/asm/xen/hypercall.h	2008-12-12 10:25:55.000000000 +0100
@@ -290,6 +290,8 @@ HYPERVISOR_get_debugreg(int reg)
 static inline int
 HYPERVISOR_update_descriptor(u64 ma, u64 desc)
 {
+	if (sizeof(u64) == sizeof(long))
+		return _hypercall2(int, update_descriptor, ma, desc);
 	return _hypercall4(int, update_descriptor, ma, ma>>32, desc, desc>>32);
 }
 




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

end of thread, other threads:[~2009-03-12 15:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-12 10:36 [PATCH] x86-64: fix HYPERVISOR_update_descriptor() Jan Beulich
2009-03-12 10:54 ` Ingo Molnar
2009-03-12 11:25   ` Jan Beulich
2009-03-12 11:35     ` Ingo Molnar
2009-03-12 11:51       ` Jan Beulich
2009-03-12 15:02         ` H. Peter Anvin
  -- strict thread matches above, loose matches on Subject: below --
2008-12-16 11:37 Jan Beulich
2008-12-16 17:55 ` Jeremy Fitzhardinge

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