mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-09-05 13:11:44 +00:00
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:
committed by
Will Deacon
parent
4e6936576b
commit
9a4ecdc5d8
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user