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:
Cyrill Gorcunov
2015-06-01 16:39:39 +01:00
committed by Will Deacon
parent ab7fd4be0c
commit 58547c303a
+1 -1
View File
@@ -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;