From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Jones Subject: [PATCH kvm-unit-tests 07/15] x86_64: mbi-cmdline is a 4 byte addr Date: Fri, 13 Jan 2017 19:15:25 +0100 Message-ID: <20170113181533.15145-8-drjones@redhat.com> References: <20170113181533.15145-1-drjones@redhat.com> Cc: rkrcmar@redhat.com, pbonzini@redhat.com, lvivier@redhat.com, thuth@redhat.com To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:60284 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751111AbdAMSPr (ORCPT ); Fri, 13 Jan 2017 13:15:47 -0500 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 23C9D67BC4 for ; Fri, 13 Jan 2017 18:15:48 +0000 (UTC) In-Reply-To: <20170113181533.15145-1-drjones@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Treating mbi-cmdline as an 8 byte addr includes mbi-mods-count, which only works as long as there are no mods. Signed-off-by: Andrew Jones --- x86/cstart64.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x86/cstart64.S b/x86/cstart64.S index e94788832267..0240507519cd 100644 --- a/x86/cstart64.S +++ b/x86/cstart64.S @@ -198,7 +198,7 @@ start64: call smp_init call enable_x2apic mov mb_boot_info(%rip), %rax - mov mb_cmdline(%rax), %rax + mov mb_cmdline(%rax), %eax mov %rax, __args(%rip) call __setup_args mov __argc(%rip), %edi -- 2.9.3