From 9a4ecdc5d87d0f10529d3cf40cdee0914a5cce6f Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Sun, 3 Apr 2011 12:42:12 +0300 Subject: [PATCH] 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 Signed-off-by: Pekka Enberg --- kvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kvm.c b/kvm.c index ce87ed7..49d5503 100644 --- a/kvm.c +++ b/kvm.c @@ -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)