From: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: Markus Rechberger <markus.rechberger-5C7GfCeVMHo@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: [PATCH] kvm compat patch
Date: Sun, 04 Feb 2007 11:35:41 +0200 [thread overview]
Message-ID: <45C5A8ED.2010402@qumranet.com> (raw)
In-Reply-To: <45C29834.4020107-5C7GfCeVMHo@public.gmane.org>
Markus Rechberger wrote:
> This patch fixes the mutex, page and kzalloc problems with older kernels.
>
> Signed-off-by: Markus Rechberger <markus.rechberger-5C7GfCeVMHo@public.gmane.org>
>
>
The page_private() and kzalloc() stuff looks good, I can apply it. But:
> Index: kvm.h
> ===================================================================
> --- kvm.h (revision 4381)
> +++ kvm.h (working copy)
> @@ -8,7 +8,9 @@
>
> #include <linux/types.h>
> #include <linux/list.h>
> +#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15)
> #include <linux/mutex.h>
> +#endif
>
Checks on kernel version are (usually) not accepted in mainline. I
think I can cook up some Makefile magic to work around the #include though.
> #include <linux/spinlock.h>
> #include <linux/mm.h>
>
> @@ -225,7 +227,11 @@
> struct vmcs *vmcs;
> struct vcpu_svm *svm;
> };
> +#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15)
> struct mutex mutex;
> +#else
> + struct semaphore mutex;
> +#endif
>
'#define mutex semaphore' in external-module-comapt.h, please.
> +#if 0
> + page->private;
> +#endif
>
Please delete.
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
next prev parent reply other threads:[~2007-02-04 9:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-02 1:47 [PATCH] kvm compat patch Markus Rechberger
[not found] ` <45C29834.4020107-5C7GfCeVMHo@public.gmane.org>
2007-02-04 9:35 ` Avi Kivity [this message]
[not found] ` <45C5A8ED.2010402-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-02-04 9:41 ` Muli Ben-Yehuda
[not found] ` <20070204094159.GG3570-k73YwwB0fHlWk0Htik3J/w@public.gmane.org>
2007-02-04 10:06 ` Avi Kivity
[not found] ` <45C5B01D.4060903-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-02-05 14:57 ` Markus Rechberger
[not found] ` <45C745E7.6000800-5C7GfCeVMHo@public.gmane.org>
2007-02-07 9:32 ` Avi Kivity
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45C5A8ED.2010402@qumranet.com \
--to=avi-atkuwr5tajbwk0htik3j/w@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=markus.rechberger-5C7GfCeVMHo@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox