* [patch] kvm.h only needs asm/types.h
@ 2009-04-29 9:59 Jes Sorensen
2009-04-29 10:05 ` Zhang, Xiantao
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: Jes Sorensen @ 2009-04-29 9:59 UTC (permalink / raw)
To: kvm-ia64
[-- Attachment #1: Type: text/plain, Size: 171 bytes --]
Hi,
I'd like to push this one upstream - it allows us to share asm/kvm.h
directly with QEMU, without having to modify it.
Patch against latest Linus tree.
Cheers,
Jes
[-- Attachment #2: 1000-kvm-ia64-asm-types.h --]
[-- Type: text/x-chdr, Size: 632 bytes --]
We only need asm/types.h in asm/kvm.h on ia64. This allows this file
to be shared with KVM userland without modifications.
Signed-off-by: Jes Sorensen <jes@sgi.com>
---
arch/ia64/include/asm/kvm.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6.git/arch/ia64/include/asm/kvm.h
===================================================================
--- linux-2.6.git.orig/arch/ia64/include/asm/kvm.h
+++ linux-2.6.git/arch/ia64/include/asm/kvm.h
@@ -21,7 +21,7 @@
*
*/
-#include <linux/types.h>
+#include <asm/types.h>
#include <linux/ioctl.h>
/* Select x86 specific features in <linux/kvm.h> */
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [patch] kvm.h only needs asm/types.h
2009-04-29 9:59 [patch] kvm.h only needs asm/types.h Jes Sorensen
@ 2009-04-29 10:05 ` Zhang, Xiantao
2009-04-29 11:37 ` Jes Sorensen
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Zhang, Xiantao @ 2009-04-29 10:05 UTC (permalink / raw)
To: kvm-ia64
Generally we should include linux/types.h instead of asm/types.h for kernel. We have already used the magic hack-module.awk(replace linux/types.h with asm/types.h) to make it work in userspace. :)
Xiantao
Jes Sorensen wrote:
> Hi,
>
> I'd like to push this one upstream - it allows us to share asm/kvm.h
> directly with QEMU, without having to modify it.
>
> Patch against latest Linus tree.
>
> Cheers,
> Jes
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [patch] kvm.h only needs asm/types.h
2009-04-29 9:59 [patch] kvm.h only needs asm/types.h Jes Sorensen
2009-04-29 10:05 ` Zhang, Xiantao
@ 2009-04-29 11:37 ` Jes Sorensen
2009-04-29 13:59 ` Zhang, Xiantao
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Jes Sorensen @ 2009-04-29 11:37 UTC (permalink / raw)
To: kvm-ia64
Zhang, Xiantao wrote:
> Generally we should include linux/types.h instead of asm/types.h for kernel. We have already used the magic hack-module.awk(replace linux/types.h with asm/types.h) to make it work in userspace. :)
> Xiantao
Yes and no, in this case we don't need it, and there is no reason to
modify the kernel headers for KVM if we can share them unmodified.
Cheers,
Jes
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [patch] kvm.h only needs asm/types.h
2009-04-29 9:59 [patch] kvm.h only needs asm/types.h Jes Sorensen
2009-04-29 10:05 ` Zhang, Xiantao
2009-04-29 11:37 ` Jes Sorensen
@ 2009-04-29 13:59 ` Zhang, Xiantao
2009-04-29 14:00 ` Jes Sorensen
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Zhang, Xiantao @ 2009-04-29 13:59 UTC (permalink / raw)
To: kvm-ia64
Jes Sorensen wrote:
> Zhang, Xiantao wrote:
>> Generally we should include linux/types.h instead of asm/types.h for
>> kernel. We have already used the magic hack-module.awk(replace
>> linux/types.h with asm/types.h) to make it work in userspace. :)
>> Xiantao
>
> Yes and no, in this case we don't need it, and there is no reason to
> modify the kernel headers for KVM if we can share them unmodified.
When you do "make sync" in userland, many files are modifed except this one. :)
Xiantao
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [patch] kvm.h only needs asm/types.h
2009-04-29 9:59 [patch] kvm.h only needs asm/types.h Jes Sorensen
` (2 preceding siblings ...)
2009-04-29 13:59 ` Zhang, Xiantao
@ 2009-04-29 14:00 ` Jes Sorensen
2009-04-29 14:13 ` Zhang, Xiantao
2009-04-29 14:19 ` Jes Sorensen
5 siblings, 0 replies; 7+ messages in thread
From: Jes Sorensen @ 2009-04-29 14:00 UTC (permalink / raw)
To: kvm-ia64
Zhang, Xiantao wrote:
> Jes Sorensen wrote:
>> Zhang, Xiantao wrote:
>>> Generally we should include linux/types.h instead of asm/types.h for
>>> kernel. We have already used the magic hack-module.awk(replace
>>> linux/types.h with asm/types.h) to make it work in userspace. :)
>>> Xiantao
>> Yes and no, in this case we don't need it, and there is no reason to
>> modify the kernel headers for KVM if we can share them unmodified.
>
> When you do "make sync" in userland, many files are modifed except this one. :)
> Xiantao
I thought make sync had been removed :-) It at least no longer works.
Cheers,
Jes
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [patch] kvm.h only needs asm/types.h
2009-04-29 9:59 [patch] kvm.h only needs asm/types.h Jes Sorensen
` (3 preceding siblings ...)
2009-04-29 14:00 ` Jes Sorensen
@ 2009-04-29 14:13 ` Zhang, Xiantao
2009-04-29 14:19 ` Jes Sorensen
5 siblings, 0 replies; 7+ messages in thread
From: Zhang, Xiantao @ 2009-04-29 14:13 UTC (permalink / raw)
To: kvm-ia64
Jes Sorensen wrote:
> Zhang, Xiantao wrote:
>> Jes Sorensen wrote:
>>> Zhang, Xiantao wrote:
>>>> Generally we should include linux/types.h instead of asm/types.h
>>>> for kernel. We have already used the magic hack-module.awk(replace
>>>> linux/types.h with asm/types.h) to make it work in userspace. :)
>>>> Xiantao
>>> Yes and no, in this case we don't need it, and there is no reason to
>>> modify the kernel headers for KVM if we can share them unmodified.
>>
>> When you do "make sync" in userland, many files are modifed except
>> this one. :) Xiantao
>
> I thought make sync had been removed :-) It at least no longer works.
If make sync won't exist in future, you may only need to submit a patch for qemu-kvm.git to fix the header file directly, :-)
Even with the patch you proposed, we still can't make kernel and userspace share all header files. For example, the header files under include/linux should be hacked also.
Xiantao
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [patch] kvm.h only needs asm/types.h
2009-04-29 9:59 [patch] kvm.h only needs asm/types.h Jes Sorensen
` (4 preceding siblings ...)
2009-04-29 14:13 ` Zhang, Xiantao
@ 2009-04-29 14:19 ` Jes Sorensen
5 siblings, 0 replies; 7+ messages in thread
From: Jes Sorensen @ 2009-04-29 14:19 UTC (permalink / raw)
To: kvm-ia64
Zhang, Xiantao wrote:
> Jes Sorensen wrote:
>> I thought make sync had been removed :-) It at least no longer works.
>
> If make sync won't exist in future, you may only need to submit a patch for qemu-kvm.git to fix the header file directly, :-)
>
> Even with the patch you proposed, we still can't make kernel and userspace share all header files. For example, the header files under include/linux should be hacked also.
> Xiantao
Yes I understand that, I am just trying to make things easier where
possible, thats all.
Cheers,
Jes
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-04-29 14:19 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-29 9:59 [patch] kvm.h only needs asm/types.h Jes Sorensen
2009-04-29 10:05 ` Zhang, Xiantao
2009-04-29 11:37 ` Jes Sorensen
2009-04-29 13:59 ` Zhang, Xiantao
2009-04-29 14:00 ` Jes Sorensen
2009-04-29 14:13 ` Zhang, Xiantao
2009-04-29 14:19 ` Jes Sorensen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox