diff options
author | Pekka Enberg <penberg@kernel.org> | 2011-04-03 12:42:12 +0300 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2015-06-01 16:39:41 +0100 |
commit | 9a4ecdc5d87d0f10529d3cf40cdee0914a5cce6f (patch) | |
tree | 2185f2f2faa9ff1a5875c040d23d2d47b699feff /kvm.c | |
parent | 4e6936576b7d5ff972f798a5f622e5a4c8ed939e (diff) | |
download | kvmtool-9a4ecdc5d87d0f10529d3cf40cdee0914a5cce6f.tar.gz |
kvm tools: Fix required boot protocol version
Cyrill has an old bzImage that SIGSEGVs when running under KVM because
'cmdline_size' is bogus. Reading Documentation/x86/boot.txt, it turns out
32-bit 'cmdline_size' requires boot protocol 2.06 or later so fix up
BOOT_PROTOCOL_REQUIRED.
Reported-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'kvm.c')
-rw-r--r-- | kvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -250,7 +250,7 @@ void kvm__enable_singlestep(struct kvm *self) #define BOOT_LOADER_SP 0x8000 #define BOOT_CMDLINE_OFFSET 0x20000 -#define BOOT_PROTOCOL_REQUIRED 0x202 +#define BOOT_PROTOCOL_REQUIRED 0x206 #define LOAD_HIGH 0x01 static int load_flat_binary(struct kvm *self, int fd) |