From: Tim Deegan Subject: Re: [PATCH] hvm/vmx: WRITE_MSR() macro hygene Date: Thu, 8 Jan 2015 16:57:44 +0100 Message-ID: <20150108155744.GE5043@deinos.phlegethon.org> References: <1420731518-17743-1-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1420731518-17743-1-git-send-email-andrew.cooper3@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Kevin Tian , Eddie Dong , Jan Beulich , Jun Nakajima , Xen-devel List-Id: xen-devel@lists.xenproject.org At 15:38 +0000 on 08 Jan (1420727918), Andrew Cooper wrote: > Use the standard "do { } while ( 0 )" semantics, and don't hide the break > statement, incase this macro wants to be used anywhere outside of a switch. > > No functional change, but it is now clear that long_mode_do_msr_write() > doesn't have fallthough for the STAR, LSTAR and SYSCALL_MASK cases. > > Signed-off-by: Andrew Cooper Reviewed-by: Tim Deegan