diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2015-07-06 13:32:01 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-03-20 15:56:35 +0100 |
commit | ab5a844f906e1394c9ea614932a8f35f4221f5e6 (patch) | |
tree | cd89b3f250bd0168fa4f34ebc0d3995ab38f31f0 /src/post.c | |
parent | f4c6e4c19daf3deac2d7fc3288db5294aba955ad (diff) | |
download | seabios-ab5a844f906e1394c9ea614932a8f35f4221f5e6.tar.gz |
kvmtool: initial support
Add CONFIG_KVMTOOL config option.
kvmtool supports virtio only, so disable drivers
for all kinds of qemu emulated hardware and leave
only virtio-blk and virtio-scsi enabled.
Set rom default size to 128k.
Enable serial console for kvmtool.
Add ram detection.
Add pci devices scan.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'src/post.c')
-rw-r--r-- | src/post.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -147,6 +147,7 @@ platform_hardware_setup(void) // Platform specific setup qemu_platform_setup(); + kvmtool_platform_setup(); coreboot_platform_setup(); // Setup timers and periodic clock interrupt @@ -307,6 +308,7 @@ dopost(void) // Detect ram and setup internal malloc. qemu_preinit(); + kvmtool_preinit(); coreboot_preinit(); malloc_preinit(); @@ -320,7 +322,7 @@ dopost(void) void VISIBLE32FLAT handle_post(void) { - if (!CONFIG_QEMU && !CONFIG_COREBOOT) + if (!CONFIG_QEMU && !CONFIG_COREBOOT && !CONFIG_KVMTOOL) return; serial_debug_preinit(); |