From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [PATCH V5 07/12] xen: Introduce monitor_op domctl Date: Tue, 17 Feb 2015 18:37:24 +0000 Message-ID: <54E38A64.2090602@citrix.com> References: <1423845203-18941-1-git-send-email-tamas.lengyel@zentific.com> <1423845203-18941-8-git-send-email-tamas.lengyel@zentific.com> <54E357FE02000078000609D7@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Tamas K Lengyel , Jan Beulich Cc: "Tian, Kevin" , "wei.liu2@citrix.com" , Ian Campbell , Stefano Stabellini , Steven Maresca , Tim Deegan , "xen-devel@lists.xen.org" , "Dong, Eddie" , Andres Lagar-Cavilla , Jun Nakajima , "rshriram@cs.ubc.ca" , Keir Fraser , Daniel De Graaf , "yanghy@cn.fujitsu.com" , Ian Jackson List-Id: xen-devel@lists.xenproject.org On 17/02/15 18:20, Tamas K Lengyel wrote: > +/************************************************/ > +/* monitor event options */ > +/************************************************/ > +struct mov_to_cr { > + uint8_t enabled; > + uint8_t sync; > + uint8_t onchangeonly; > +}; > + > +struct mov_to_msr { > + uint8_t enabled; > + uint8_t extended_capture; > +}; > + > +struct debug_event { > + uint8_t enabled; > +}; >> These are all internal structures - is there anything wrong with using >> bitfields here? > The use if bitfields is not good performance-wise AFAIK. Would there > be any benefit that would offset that? struct vcpu lives in a 4k page. We avoid needlessly bloating it. However bitfields will not work with my suggestion as you cannot construct a pointer to 'enabled' if enabled is a bit. ~Andrew