From: "Jan Beulich" Subject: Re: [PATCH 2/2] CA-162192: Fix rebooting on some EFI-booted systems Date: Wed, 11 Mar 2015 15:19:28 +0000 Message-ID: <55006B100200007800068A2A@mail.emea.novell.com> References: <1426074292-32624-1-git-send-email-ross.lagerwall@citrix.com> <1426074292-32624-2-git-send-email-ross.lagerwall@citrix.com> <55005A75020000780006891B@mail.emea.novell.com> <20150311143617.GC27525@l.oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20150311143617.GC27525@l.oracle.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Konrad Rzeszutek Wilk Cc: Andrew Cooper , xen-devel@lists.xen.org, Keir Fraser , Ross Lagerwall List-Id: xen-devel@lists.xenproject.org >>> On 11.03.15 at 15:36, wrote: > @@ -504,10 +511,9 @@ void machine_restart(unsigned int delay_millisecs) > tboot_shutdown(TB_SHUTDOWN_REBOOT); > } > > - efi_reset_system(reboot_mode != 0); > - > /* Rebooting needs to touch the page at absolute address 0. */ > - *((unsigned short *)__va(0x472)) = reboot_mode; > + if ( !efi_enabled ) > + *((unsigned short *)__va(0x472)) = reboot_mode; This shouldn't depend on efi_enabled, but on reboot type not being BOOT_EFI (which means it may need to be duplicated in the "case BOOT_EFI:" code). Jan