All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Allow blktap to build as a module
@ 2007-01-03  0:58 John Byrne
  2007-01-03  8:12 ` Jan Beulich
  0 siblings, 1 reply; 6+ messages in thread
From: John Byrne @ 2007-01-03  0:58 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 139 bytes --]


The patch is against xen-unstable 13205:886f7312257e, but should also 
apply to 3.0.4.

Signed-off-by: John Byrne <john.l.byrne@hp.com>



[-- Attachment #2: tapmod.patch --]
[-- Type: text/x-patch, Size: 474 bytes --]

diff -r f80f1cc7f85e linux-2.6-xen-sparse/drivers/xen/blktap/Makefile
--- a/linux-2.6-xen-sparse/drivers/xen/blktap/Makefile	Wed Dec 20 09:48:21 2006 +0000
+++ b/linux-2.6-xen-sparse/drivers/xen/blktap/Makefile	Thu Dec 28 20:37:08 2006 -0600
@@ -1,3 +1,6 @@ LINUXINCLUDE += -I../xen/include/public/
 LINUXINCLUDE += -I../xen/include/public/io
-obj-y	:= xenbus.o interface.o blktap.o 
 
+obj-$(CONFIG_XEN_BLKDEV_TAP) := blktp.o
+
+blktp-y	:= xenbus.o interface.o blktap.o 
+

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

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

* Re: [PATCH] Allow blktap to build as a module
  2007-01-03  0:58 [PATCH] Allow blktap to build as a module John Byrne
@ 2007-01-03  8:12 ` Jan Beulich
  2007-01-03  8:20   ` Keir Fraser
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Beulich @ 2007-01-03  8:12 UTC (permalink / raw)
  To: John Byrne, xen-devel

I had posted a patch for this quite a while back (no clue why it wasn't picked up),
though allowing the module to be more logically named blktap.ko. I'd really dislike to
now have a blktp.ko. Jan

>>> John Byrne <john.l.byrne@hp.com> 03.01.07 01:58 >>>

The patch is against xen-unstable 13205:886f7312257e, but should also 
apply to 3.0.4.

Signed-off-by: John Byrne <john.l.byrne@hp.com>

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

* Re: [PATCH] Allow blktap to build as a module
  2007-01-03  8:12 ` Jan Beulich
@ 2007-01-03  8:20   ` Keir Fraser
  2007-01-03  8:41     ` Jan Beulich
  2007-01-03 18:15     ` John Byrne
  0 siblings, 2 replies; 6+ messages in thread
From: Keir Fraser @ 2007-01-03  8:20 UTC (permalink / raw)
  To: Jan Beulich, John Byrne, xen-devel

IIRC blktap doesn't straightforwardly build and work as a module. Some code
cleanup is required (getting rid of zap_page_range()?). There's no point in
taking the trivial Makefile fragment until that is fixed satisfactorily.

 -- Keir

On 3/1/07 8:12 am, "Jan Beulich" <jbeulich@novell.com> wrote:

> I had posted a patch for this quite a while back (no clue why it wasn't picked
> up),
> though allowing the module to be more logically named blktap.ko. I'd really
> dislike to
> now have a blktp.ko. Jan
> 
>>>> John Byrne <john.l.byrne@hp.com> 03.01.07 01:58 >>>
> 
> The patch is against xen-unstable 13205:886f7312257e, but should also
> apply to 3.0.4.
> 
> Signed-off-by: John Byrne <john.l.byrne@hp.com>
> 
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel

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

* Re: [PATCH] Allow blktap to build as a module
  2007-01-03  8:20   ` Keir Fraser
@ 2007-01-03  8:41     ` Jan Beulich
  2007-01-03 12:45       ` Daniel P. Berrange
  2007-01-03 18:15     ` John Byrne
  1 sibling, 1 reply; 6+ messages in thread
From: Jan Beulich @ 2007-01-03  8:41 UTC (permalink / raw)
  To: Keir Fraser, John Byrne, xen-devel

>>> Keir Fraser <Keir.Fraser@cl.cam.ac.uk> 03.01.07 09:20 >>>
>IIRC blktap doesn't straightforwardly build and work as a module. Some code
>cleanup is required (getting rid of zap_page_range()?). There's no point in
>taking the trivial Makefile fragment until that is fixed satisfactorily.

For the moment, we just leveraged the fact that in the SLE10 kernels
zap_page_range() is being exported for other reasons. In 10.2, we added
the export.

Jan

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

* Re: [PATCH] Allow blktap to build as a module
  2007-01-03  8:41     ` Jan Beulich
@ 2007-01-03 12:45       ` Daniel P. Berrange
  0 siblings, 0 replies; 6+ messages in thread
From: Daniel P. Berrange @ 2007-01-03 12:45 UTC (permalink / raw)
  To: Jan Beulich; +Cc: xen-devel, John Byrne

On Wed, Jan 03, 2007 at 08:41:10AM +0000, Jan Beulich wrote:
> >>> Keir Fraser <Keir.Fraser@cl.cam.ac.uk> 03.01.07 09:20 >>>
> >IIRC blktap doesn't straightforwardly build and work as a module. Some code
> >cleanup is required (getting rid of zap_page_range()?). There's no point in
> >taking the trivial Makefile fragment until that is fixed satisfactorily.
> 
> For the moment, we just leveraged the fact that in the SLE10 kernels
> zap_page_range() is being exported for other reasons. In 10.2, we added
> the export.

We did likewise for Fedora & RHEL - it was pretty trivial really to make
it work as a module.

Regards,
Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 

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

* Re: [PATCH] Allow blktap to build as a module
  2007-01-03  8:20   ` Keir Fraser
  2007-01-03  8:41     ` Jan Beulich
@ 2007-01-03 18:15     ` John Byrne
  1 sibling, 0 replies; 6+ messages in thread
From: John Byrne @ 2007-01-03 18:15 UTC (permalink / raw)
  To: Keir Fraser; +Cc: xen-devel, Jan Beulich

Keir Fraser wrote:
> IIRC blktap doesn't straightforwardly build and work as a module. Some code
> cleanup is required (getting rid of zap_page_range()?). There's no point in
> taking the trivial Makefile fragment until that is fixed satisfactorily.
> 
>  -- Keir

I thought I'd tested it. (You had me worried) zap_page_range() got 
exported in 12678:260426e3924f as part of the virtual frame buffer patch.

If Jan has a patch that doesn't change the name, that would be better. I 
didn't much like the name change, but I was being lazy.

John

> 
> On 3/1/07 8:12 am, "Jan Beulich" <jbeulich@novell.com> wrote:
> 
>> I had posted a patch for this quite a while back (no clue why it wasn't picked
>> up),
>> though allowing the module to be more logically named blktap.ko. I'd really
>> dislike to
>> now have a blktp.ko. Jan
>>
>>>>> John Byrne <john.l.byrne@hp.com> 03.01.07 01:58 >>>
>> The patch is against xen-unstable 13205:886f7312257e, but should also
>> apply to 3.0.4.
>>
>> Signed-off-by: John Byrne <john.l.byrne@hp.com>
>>
>>
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@lists.xensource.com
>> http://lists.xensource.com/xen-devel
> 
> 
> 

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

end of thread, other threads:[~2007-01-03 18:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-03  0:58 [PATCH] Allow blktap to build as a module John Byrne
2007-01-03  8:12 ` Jan Beulich
2007-01-03  8:20   ` Keir Fraser
2007-01-03  8:41     ` Jan Beulich
2007-01-03 12:45       ` Daniel P. Berrange
2007-01-03 18:15     ` John Byrne

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.