From: Keir Fraser Subject: Re: paging_domctl() missing break statements? Date: Wed, 23 Jun 2010 13:51:30 +0100 Message-ID: References: <4C21FDB3.8000402@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4C21FDB3.8000402@redhat.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Paolo Bonzini , Tim Deegan Cc: "xen-devel@lists.xensource.com" , Jan Beulich List-Id: xen-devel@lists.xenproject.org On 23/06/2010 13:27, "Paolo Bonzini" wrote: >>> The main switch statement in that function looks suspicious, and with no >>> explicit comment saying that fall-through is intended it would seem like >>> one or two break statements are actually missing. Comments? >> >> Yep, looks like that was just working by blind luck. >> >> Tim. > This was never applied. It was applied as 20954:b4041e7bbe1b but then reverted as 20987:c4301c2c727d: """ Revert 20954:b4041e7bbe1b "paging_domctl: Add missing breaks in switch stmt" This fixed a fairly innocuous bug (OP_ENABLE/OP_OFF both don't work properly) but unmasked a much nastier one (turning off shadow mode on a PV guest crashes the hypervisor). So, for now, we pick the less of two evils. We don't really much rely on OP_ENABLE/OP_OFF anyway, as it happens. Signed-off-by: Keir Fraser """ -- Keir