From: Ben Guthro <bguthro@virtualiron.com>
To: xen-devel@lists.xensource.com, Dave Lively <dlively@virtualiron.com>
Subject: [PV-onHVM][PATCH 3/3] Fix bad symbol reference
Date: Thu, 06 Sep 2007 13:43:55 -0400 [thread overview]
Message-ID: <46E03C5B.40500@virtualiron.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 258 bytes --]
This fixes a bug causing a bogus symbol reference (to init_page_count)
in the PV-on-HVM drivers for 2.6 kernels that define the set_page_count
macro.
Signed-off-by: Ben Guthro <bguthro@virtualiron.com>
Signed-off-by: Dave Lively <dlively@virtualiron.com>
[-- Attachment #2: xen-legacy-gnttab-fix.patch --]
[-- Type: text/x-patch, Size: 696 bytes --]
diff -r e2956856259c include/xen/gnttab.h
--- a/include/xen/gnttab.h Tue Sep 04 13:49:56 2007 -0400
+++ b/include/xen/gnttab.h Tue Sep 04 15:16:47 2007 -0400
@@ -108,11 +108,15 @@ static inline void __gnttab_dma_unmap_pa
{
}
-static inline void gnttab_reset_grant_page(struct page *page)
-{
- init_page_count(page);
- reset_page_mapcount(page);
-}
+/* init_page_count() is conditionally redefined by xen/platform-compat.h, so
+ * we can't inline a call to it.
+ */
+#define gnttab_reset_grant_page(p) \
+ do { \
+ struct page *_page = p; \
+ init_page_count(_page); \
+ reset_page_mapcount(_page); \
+ } while (0); \
int gnttab_suspend(void);
int gnttab_resume(void);
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
reply other threads:[~2007-09-06 17:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=46E03C5B.40500@virtualiron.com \
--to=bguthro@virtualiron.com \
--cc=dlively@virtualiron.com \
--cc=xen-devel@lists.xensource.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.