kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* KVM for Linux 2.6.16?
@ 2009-07-09 16:49 Fischer, Anna
  2009-07-09 17:44 ` Alexander Graf
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Fischer, Anna @ 2009-07-09 16:49 UTC (permalink / raw)
  To: kvm

Hi, I am trying to compile the kvm-87 module for Linux 2.6.16. I thought that it has been back-ported to such an old kernel. However, I don't seem to be able to compile the module on my kernel. I get the following error:

  CC    tsc2005.o
  CC    scsi-disk.o
  CC    cdrom.o
  CC    scsi-generic.o
  CC    usb.o
  CC    usb-hub.o
  CC    usb-linux.o
In file included from usb-linux.c:41:
/usr/include/linux/usbdevice_fs.h:49: error: expected ':', ',', ';', '}' or '__attribute__' before '*' token
/usr/include/linux/usbdevice_fs.h:56: error: expected ':', ',', ';', '}' or '__attribute__' before '*' token
/usr/include/linux/usbdevice_fs.h:66: error: expected ':', ',', ';', '}' or '__attribute__' before '*' token
/usr/include/linux/usbdevice_fs.h:100: error: expected ':', ',', ';', '}' or '__attribute__' before '*' token
/usr/include/linux/usbdevice_fs.h:116: error: expected ':', ',', ';', '}' or '__attribute__' before '*' token
usb-linux.c: In function 'async_complete':
usb-linux.c:271: error: 'struct usbdevfs_urb' has no member named 'actual_length'
usb-linux.c: In function 'usb_host_handle_data':
usb-linux.c:464: error: 'struct usbdevfs_urb' has no member named 'buffer'
usb-linux.c:465: error: 'struct usbdevfs_urb' has no member named 'buffer_length'
usb-linux.c:471: error: 'struct usbdevfs_urb' has no member named 'number_of_packets'
usb-linux.c:472: error: 'struct usbdevfs_urb' has no member named 'iso_frame_desc'
usb-linux.c:478: error: 'struct usbdevfs_urb' has no member named 'usercontext'
usb-linux.c: In function 'usb_host_handle_control':
usb-linux.c:598: error: 'struct usbdevfs_urb' has no member named 'buffer'


Is KVM not supposed to work on 2.6.16?

Cheers,
Anna

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

* Re: KVM for Linux 2.6.16?
  2009-07-09 16:49 KVM for Linux 2.6.16? Fischer, Anna
@ 2009-07-09 17:44 ` Alexander Graf
  2009-07-09 17:49 ` Cristi Magherusan
  2009-07-16 22:27 ` Anthony Liguori
  2 siblings, 0 replies; 7+ messages in thread
From: Alexander Graf @ 2009-07-09 17:44 UTC (permalink / raw)
  To: Fischer, Anna; +Cc: kvm


On 09.07.2009, at 18:49, Fischer, Anna wrote:

> Is KVM not supposed to work on 2.6.16?

May I ask for the reason you want to run KVM on such an old kernel and  
even compile it yourself? :-)

Alex


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

* Re: KVM for Linux 2.6.16?
  2009-07-09 16:49 KVM for Linux 2.6.16? Fischer, Anna
  2009-07-09 17:44 ` Alexander Graf
@ 2009-07-09 17:49 ` Cristi Magherusan
  2009-07-09 18:22   ` Fischer, Anna
  2009-07-12  6:02   ` Avi Kivity
  2009-07-16 22:27 ` Anthony Liguori
  2 siblings, 2 replies; 7+ messages in thread
From: Cristi Magherusan @ 2009-07-09 17:49 UTC (permalink / raw)
  To: Fischer, Anna; +Cc: kvm

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

On Thu, 2009-07-09 at 16:49 +0000, Fischer, Anna wrote:
> Hi, I am trying to compile the kvm-87 module for Linux 2.6.16. I thought that it has been back-ported to such an old kernel. However, I don't seem to be able to compile the module on my kernel. I get the following error:
> 
>   CC    tsc2005.o
>   CC    scsi-disk.o
>   CC    cdrom.o
>   CC    scsi-generic.o
>   CC    usb.o
>   CC    usb-hub.o
>   CC    usb-linux.o
> In file included from usb-linux.c:41:
> /usr/include/linux/usbdevice_fs.h:49: error: expected ':', ',', ';', '}' or '__attribute__' before '*' token
> /usr/include/linux/usbdevice_fs.h:56: error: expected ':', ',', ';', '}' or '__attribute__' before '*' token
> /usr/include/linux/usbdevice_fs.h:66: error: expected ':', ',', ';', '}' or '__attribute__' before '*' token
> /usr/include/linux/usbdevice_fs.h:100: error: expected ':', ',', ';', '}' or '__attribute__' before '*' token
> /usr/include/linux/usbdevice_fs.h:116: error: expected ':', ',', ';', '}' or '__attribute__' before '*' token
> usb-linux.c: In function 'async_complete':
> usb-linux.c:271: error: 'struct usbdevfs_urb' has no member named 'actual_length'
> usb-linux.c: In function 'usb_host_handle_data':
> usb-linux.c:464: error: 'struct usbdevfs_urb' has no member named 'buffer'
> usb-linux.c:465: error: 'struct usbdevfs_urb' has no member named 'buffer_length'
> usb-linux.c:471: error: 'struct usbdevfs_urb' has no member named 'number_of_packets'
> usb-linux.c:472: error: 'struct usbdevfs_urb' has no member named 'iso_frame_desc'
> usb-linux.c:478: error: 'struct usbdevfs_urb' has no member named 'usercontext'
> usb-linux.c: In function 'usb_host_handle_control':
> usb-linux.c:598: error: 'struct usbdevfs_urb' has no member named 'buffer'
> 
> 
> Is KVM not supposed to work on 2.6.16?
Hi Anna,

I'm afraid that I have some bad news for you. Usually KVM versions are
tailored to kernel versions contemporary with them. Version 87 is
supposed to need 2.6.26 kernels and newer, IIRC. So for your 2.6.16 you
should try some of the incipient KVM versions, and if you are lucky
enough, they might work.

Anyway, are you so tied to that specific kernel version?

Regards,
Cristi

-- 
Ing. Cristi Măgherușan, System/Network Engineer
Technical University of Cluj-Napoca, Romania
http://cc.utcluj.ro  +40264 401247

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

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

* RE: KVM for Linux 2.6.16?
  2009-07-09 17:49 ` Cristi Magherusan
@ 2009-07-09 18:22   ` Fischer, Anna
  2009-07-09 19:27     ` Alexander Graf
  2009-07-12  6:02   ` Avi Kivity
  1 sibling, 1 reply; 7+ messages in thread
From: Fischer, Anna @ 2009-07-09 18:22 UTC (permalink / raw)
  To: Cristi Magherusan; +Cc: kvm

> Subject: Re: KVM for Linux 2.6.16?
> 
> On Thu, 2009-07-09 at 16:49 +0000, Fischer, Anna wrote:
> > Hi, I am trying to compile the kvm-87 module for Linux 2.6.16. I
> thought that it has been back-ported to such an old kernel. However, I
> don't seem to be able to compile the module on my kernel. I get the
> following error:
> >
> >   CC    tsc2005.o
> >   CC    scsi-disk.o
> >   CC    cdrom.o
> >   CC    scsi-generic.o
> >   CC    usb.o
> >   CC    usb-hub.o
> >   CC    usb-linux.o
> > In file included from usb-linux.c:41:
> > /usr/include/linux/usbdevice_fs.h:49: error: expected ':', ',', ';',
> '}' or '__attribute__' before '*' token
> > /usr/include/linux/usbdevice_fs.h:56: error: expected ':', ',', ';',
> '}' or '__attribute__' before '*' token
> > /usr/include/linux/usbdevice_fs.h:66: error: expected ':', ',', ';',
> '}' or '__attribute__' before '*' token
> > /usr/include/linux/usbdevice_fs.h:100: error: expected ':', ',', ';',
> '}' or '__attribute__' before '*' token
> > /usr/include/linux/usbdevice_fs.h:116: error: expected ':', ',', ';',
> '}' or '__attribute__' before '*' token
> > usb-linux.c: In function 'async_complete':
> > usb-linux.c:271: error: 'struct usbdevfs_urb' has no member named
> 'actual_length'
> > usb-linux.c: In function 'usb_host_handle_data':
> > usb-linux.c:464: error: 'struct usbdevfs_urb' has no member named
> 'buffer'
> > usb-linux.c:465: error: 'struct usbdevfs_urb' has no member named
> 'buffer_length'
> > usb-linux.c:471: error: 'struct usbdevfs_urb' has no member named
> 'number_of_packets'
> > usb-linux.c:472: error: 'struct usbdevfs_urb' has no member named
> 'iso_frame_desc'
> > usb-linux.c:478: error: 'struct usbdevfs_urb' has no member named
> 'usercontext'
> > usb-linux.c: In function 'usb_host_handle_control':
> > usb-linux.c:598: error: 'struct usbdevfs_urb' has no member named
> 'buffer'
> >
> >
> > Is KVM not supposed to work on 2.6.16?
> Hi Anna,
> 
> I'm afraid that I have some bad news for you. Usually KVM versions are
> tailored to kernel versions contemporary with them. Version 87 is
> supposed to need 2.6.26 kernels and newer, IIRC. So for your 2.6.16 you
> should try some of the incipient KVM versions, and if you are lucky
> enough, they might work.

So if I run an ancient Linux kernel, then I can only run with an ancient KVM version? I thought the code was kept backwards compatible to some extend?

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

* Re: KVM for Linux 2.6.16?
  2009-07-09 18:22   ` Fischer, Anna
@ 2009-07-09 19:27     ` Alexander Graf
  0 siblings, 0 replies; 7+ messages in thread
From: Alexander Graf @ 2009-07-09 19:27 UTC (permalink / raw)
  To: Fischer, Anna; +Cc: Cristi Magherusan, kvm


On 09.07.2009, at 20:22, Fischer, Anna wrote:

>> Subject: Re: KVM for Linux 2.6.16?
>>
>> On Thu, 2009-07-09 at 16:49 +0000, Fischer, Anna wrote:
>>> Hi, I am trying to compile the kvm-87 module for Linux 2.6.16. I
>> thought that it has been back-ported to such an old kernel.  
>> However, I
>> don't seem to be able to compile the module on my kernel. I get the
>> following error:
>>>
>>>  CC    tsc2005.o
>>>  CC    scsi-disk.o
>>>  CC    cdrom.o
>>>  CC    scsi-generic.o
>>>  CC    usb.o
>>>  CC    usb-hub.o
>>>  CC    usb-linux.o
>>> In file included from usb-linux.c:41:
>>> /usr/include/linux/usbdevice_fs.h:49: error: expected ':', ',', ';',
>> '}' or '__attribute__' before '*' token
>>> /usr/include/linux/usbdevice_fs.h:56: error: expected ':', ',', ';',
>> '}' or '__attribute__' before '*' token
>>> /usr/include/linux/usbdevice_fs.h:66: error: expected ':', ',', ';',
>> '}' or '__attribute__' before '*' token
>>> /usr/include/linux/usbdevice_fs.h:100: error: expected ':', ',',  
>>> ';',
>> '}' or '__attribute__' before '*' token
>>> /usr/include/linux/usbdevice_fs.h:116: error: expected ':', ',',  
>>> ';',
>> '}' or '__attribute__' before '*' token
>>> usb-linux.c: In function 'async_complete':
>>> usb-linux.c:271: error: 'struct usbdevfs_urb' has no member named
>> 'actual_length'
>>> usb-linux.c: In function 'usb_host_handle_data':
>>> usb-linux.c:464: error: 'struct usbdevfs_urb' has no member named
>> 'buffer'
>>> usb-linux.c:465: error: 'struct usbdevfs_urb' has no member named
>> 'buffer_length'
>>> usb-linux.c:471: error: 'struct usbdevfs_urb' has no member named
>> 'number_of_packets'
>>> usb-linux.c:472: error: 'struct usbdevfs_urb' has no member named
>> 'iso_frame_desc'
>>> usb-linux.c:478: error: 'struct usbdevfs_urb' has no member named
>> 'usercontext'
>>> usb-linux.c: In function 'usb_host_handle_control':
>>> usb-linux.c:598: error: 'struct usbdevfs_urb' has no member named
>> 'buffer'
>>>
>>>
>>> Is KVM not supposed to work on 2.6.16?
>> Hi Anna,
>>
>> I'm afraid that I have some bad news for you. Usually KVM versions  
>> are
>> tailored to kernel versions contemporary with them. Version 87 is
>> supposed to need 2.6.26 kernels and newer, IIRC. So for your 2.6.16  
>> you
>> should try some of the incipient KVM versions, and if you are lucky
>> enough, they might work.
>
> So if I run an ancient Linux kernel, then I can only run with an  
> ancient KVM version? I thought the code was kept backwards  
> compatible to some extend?

It is, but nobody really tested it on such old systems I think.

The issue you're running into is in userland though and related to usb  
passthrough. So you should be able to get away with disabling HOST_USB  
in your config-host.mak file.

May I ask again why you need to have things running on 2.6.16?

Alex


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

* Re: KVM for Linux 2.6.16?
  2009-07-09 17:49 ` Cristi Magherusan
  2009-07-09 18:22   ` Fischer, Anna
@ 2009-07-12  6:02   ` Avi Kivity
  1 sibling, 0 replies; 7+ messages in thread
From: Avi Kivity @ 2009-07-12  6:02 UTC (permalink / raw)
  To: Cristi Magherusan; +Cc: Fischer, Anna, kvm

On 07/09/2009 08:49 PM, Cristi Magherusan wrote:
>
>> Is KVM not supposed to work on 2.6.16?
>>      
> Hi Anna,
>
> I'm afraid that I have some bad news for you. Usually KVM versions are
> tailored to kernel versions contemporary with them. Version 87 is
> supposed to need 2.6.26 kernels and newer, IIRC. So for your 2.6.16 you
> should try some of the incipient KVM versions, and if you are lucky
> enough, they might work.
>    

That's incorrect.  We try to keep compatibility from 2.6.16 forward.  
Due to the huge test matrix we often have problems, but once we get 
automatic testing going this will improve.


-- 
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.


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

* Re: KVM for Linux 2.6.16?
  2009-07-09 16:49 KVM for Linux 2.6.16? Fischer, Anna
  2009-07-09 17:44 ` Alexander Graf
  2009-07-09 17:49 ` Cristi Magherusan
@ 2009-07-16 22:27 ` Anthony Liguori
  2 siblings, 0 replies; 7+ messages in thread
From: Anthony Liguori @ 2009-07-16 22:27 UTC (permalink / raw)
  To: Fischer, Anna; +Cc: kvm

Fischer, Anna wrote:
> Hi, I am trying to compile the kvm-87 module for Linux 2.6.16. I thought that it has been back-ported to such an old kernel. However, I don't seem to be able to compile the module on my kernel. I get the following error:
>
>   CC    tsc2005.o
>   CC    scsi-disk.o
>   CC    cdrom.o
>   CC    scsi-generic.o
>   CC    usb.o
>   CC    usb-hub.o
>   CC    usb-linux.o
> In file included from usb-linux.c:41:
> /usr/include/linux/usbdevice_fs.h:49: error: expected ':', ',', ';', '}' or '__attribute__' before '*' token
> /usr/include/linux/usbdevice_fs.h:56: error: expected ':', ',', ';', '}' or '__attribute__' before '*' token
> /usr/include/linux/usbdevice_fs.h:66: error: expected ':', ',', ';', '}' or '__attribute__' before '*' token
> /usr/include/linux/usbdevice_fs.h:100: error: expected ':', ',', ';', '}' or '__attribute__' before '*' token
> /usr/include/linux/usbdevice_fs.h:116: error: expected ':', ',', ';', '}' or '__attribute__' before '*' token
> usb-linux.c: In function 'async_complete':
> usb-linux.c:271: error: 'struct usbdevfs_urb' has no member named 'actual_length'
> usb-linux.c: In function 'usb_host_handle_data':
> usb-linux.c:464: error: 'struct usbdevfs_urb' has no member named 'buffer'
> usb-linux.c:465: error: 'struct usbdevfs_urb' has no member named 'buffer_length'
> usb-linux.c:471: error: 'struct usbdevfs_urb' has no member named 'number_of_packets'
> usb-linux.c:472: error: 'struct usbdevfs_urb' has no member named 'iso_frame_desc'
> usb-linux.c:478: error: 'struct usbdevfs_urb' has no member named 'usercontext'
> usb-linux.c: In function 'usb_host_handle_control':
> usb-linux.c:598: error: 'struct usbdevfs_urb' has no member named 'buffer'
>   

./configure --extra-cflags='-D__user=""'

Will fix this.  The usbdevice_fs.h in sles10 is broken.

Regards,

Anthony Liguori

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

end of thread, other threads:[~2009-07-16 22:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-09 16:49 KVM for Linux 2.6.16? Fischer, Anna
2009-07-09 17:44 ` Alexander Graf
2009-07-09 17:49 ` Cristi Magherusan
2009-07-09 18:22   ` Fischer, Anna
2009-07-09 19:27     ` Alexander Graf
2009-07-12  6:02   ` Avi Kivity
2009-07-16 22:27 ` Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).