diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-23 12:03:07 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-23 12:03:07 -0400 |
commit | 0d6810091cdbd05efeb31654c6a41a6cbdfdd2c8 (patch) | |
tree | 44d79f8133ea6acd791fe4f32188789c2c65da93 /scripts | |
parent | a98ce5c6feead6bfedefabd46cb3d7f5be148d9a (diff) | |
parent | 43d33b21a03d3abcc8cbdeb4d52bc4568f822c5e (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-lguest
* git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-lguest: (45 commits)
Use "struct boot_params" in example launcher
Loading bzImage directly.
Revert lguest magic and use hook in head.S
Update lguest documentation to reflect the new virtual block device name.
generalize lgread_u32/lgwrite_u32.
Example launcher handle guests not being ready for input
Update example launcher for virtio
Lguest support for Virtio
Remove old lguest I/O infrrasructure.
Remove old lguest bus and drivers.
Virtio helper routines for a descriptor ringbuffer implementation
Module autoprobing support for virtio drivers.
Virtio console driver
Block driver using virtio.
Net driver using virtio
Virtio interface
Boot with virtual == physical to get closer to native Linux.
Allow guest to specify syscall vector to use.
Rename "cr3" to "gpgdir" to avoid x86-specific naming.
Pagetables to use normal kernel types
...
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mod/file2alias.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index 91c15da268..d802b5afae 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c | |||
@@ -525,6 +525,20 @@ static int do_ssb_entry(const char *filename, | |||
525 | return 1; | 525 | return 1; |
526 | } | 526 | } |
527 | 527 | ||
528 | /* Looks like: virtio:dNvN */ | ||
529 | static int do_virtio_entry(const char *filename, struct virtio_device_id *id, | ||
530 | char *alias) | ||
531 | { | ||
532 | id->device = TO_NATIVE(id->device); | ||
533 | id->vendor = TO_NATIVE(id->vendor); | ||
534 | |||
535 | strcpy(alias, "virtio:"); | ||
536 | ADD(alias, "d", 1, id->device); | ||
537 | ADD(alias, "v", id->vendor != VIRTIO_DEV_ANY_ID, id->vendor); | ||
538 | |||
539 | return 1; | ||
540 | } | ||
541 | |||
528 | /* Ignore any prefix, eg. v850 prepends _ */ | 542 | /* Ignore any prefix, eg. v850 prepends _ */ |
529 | static inline int sym_is(const char *symbol, const char *name) | 543 | static inline int sym_is(const char *symbol, const char *name) |
530 | { | 544 | { |
@@ -651,6 +665,10 @@ void handle_moddevtable(struct module *mod, struct elf_info *info, | |||
651 | do_table(symval, sym->st_size, | 665 | do_table(symval, sym->st_size, |
652 | sizeof(struct ssb_device_id), "ssb", | 666 | sizeof(struct ssb_device_id), "ssb", |
653 | do_ssb_entry, mod); | 667 | do_ssb_entry, mod); |
668 | else if (sym_is(symname, "__mod_virtio_device_table")) | ||
669 | do_table(symval, sym->st_size, | ||
670 | sizeof(struct virtio_device_id), "virtio", | ||
671 | do_virtio_entry, mod); | ||
654 | free(zeros); | 672 | free(zeros); |
655 | } | 673 | } |
656 | 674 | ||