From 58547c303a022815f53b45a963bc60b19126e9ee Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Fri, 16 Apr 2010 21:33:04 +0400 Subject: [PATCH] kvm: Command line update must honor ABI This is a part of boot protocol, so that we must honor it. Reported-by: Pekka Enberg Signed-off-by: Cyrill Gorcunov --- kvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kvm.c b/kvm.c index fe21c53..03becb8 100644 --- a/kvm.c +++ b/kvm.c @@ -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;