mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-09-07 14:14:02 +00:00
kvm: Command line update must honor ABI
This is a part of boot protocol, so that we must honor it. Reported-by: Pekka Enberg <penberg@cs.helsinki.fi> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
committed by
Will Deacon
parent
ab7fd4be0c
commit
58547c303a
@@ -267,7 +267,7 @@ static bool load_bzimage(struct kvm *self, int fd, const char *kernel_cmdline)
|
||||
memcpy(p, kernel_cmdline, cmdline_size - 1);
|
||||
|
||||
p = guest_real_to_host(self, BOOT_LOADER_SELECTOR, 0x228);
|
||||
*(unsigned long *)p = BOOT_CMDLINE_OFFSET;
|
||||
*(uint32_t *)p = BOOT_CMDLINE_OFFSET;
|
||||
}
|
||||
|
||||
self->boot_selector = BOOT_LOADER_SELECTOR;
|
||||
|
||||
Reference in New Issue
Block a user