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>
This commit is contained in:
Pekka Enberg
2015-06-01 16:39:41 +01:00
committed by Will Deacon
parent 4e6936576b
commit 9a4ecdc5d8
+1 -1
View File
@@ -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)