From: Pekka Enberg Date: Sun, 3 Apr 2011 09:42:12 +0000 (+0300) Subject: kvm tools: Fix required boot protocol version X-Git-Tag: next-20110824~3^2~503 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a580854ae02b98e39ea353042b899a39d7c1b97f;p=karo-tx-linux.git 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 --- diff --git a/tools/kvm/kvm.c b/tools/kvm/kvm.c index ce87ed7c6233..49d550335910 100644 --- a/tools/kvm/kvm.c +++ b/tools/kvm/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)