kvm tools: Setup BIOS for both bzImage and flat image

There is no differences in terms of BIOS what kind of kernel is loaded so we
have to setup BIOS for both bzImage and flat image.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
Cyrill Gorcunov
2015-06-01 16:39:41 +01:00
committed by Will Deacon
parent 7e8625445b
commit 9d850b3760
2 changed files with 2 additions and 5 deletions
-5
View File
@@ -384,11 +384,6 @@ static bool load_bzimage(struct kvm *self, int fd_kernel,
self->boot_ip = BOOT_LOADER_IP + 0x200;
self->boot_sp = BOOT_LOADER_SP;
/*
* Drum roll, BIOS is coming to live, oh dear...
*/
setup_bios(self);
return true;
}
+2
View File
@@ -162,6 +162,8 @@ int main(int argc, char *argv[])
kvm__reset_vcpu(kvm);
setup_bios(kvm);
kvm__setup_mem(kvm);
if (single_step)