From: Christian Borntraeger Subject: Re: [PATCH/RFC] virtio_blk: check for hardsector size from host Date: Thu, 29 May 2008 10:27:25 +0200 Message-ID: <200805291027.25369.borntraeger@de.ibm.com> References: <200805271105.00077.borntraeger@de.ibm.com> <20080529081255.GO25504@kernel.dk> <20080529081357.GP25504@kernel.dk> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: Rusty Russell , virtualization@lists.linux-foundation.org, kvm@vger.kernel.org To: Jens Axboe Return-path: Received: from mtagate2.uk.ibm.com ([195.212.29.135]:7004 "EHLO mtagate2.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750726AbYE2I27 (ORCPT ); Thu, 29 May 2008 04:28:59 -0400 Received: from d06nrmr1407.portsmouth.uk.ibm.com (d06nrmr1407.portsmouth.uk.ibm.com [9.149.38.185]) by mtagate2.uk.ibm.com (8.13.8/8.13.8) with ESMTP id m4T8SiML373548 for ; Thu, 29 May 2008 08:28:44 GMT Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by d06nrmr1407.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v8.7) with ESMTP id m4T8RRt52326748 for ; Thu, 29 May 2008 09:27:27 +0100 Received: from d06av01.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m4T8RQij032248 for ; Thu, 29 May 2008 09:27:27 +0100 In-Reply-To: <20080529081357.GP25504@kernel.dk> Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: Am Donnerstag, 29. Mai 2008 schrieb Jens Axboe: > > > Just that u64 seems like overkill: u32? > > > > Definitely, u32 would be just fine, u64 is way overkill :-) > > Even u16 would work, the block layer doesn't use more than an unsigned > short for storing hardware sector size anyway. Thanks, good to know. Do you think, that could change in the future? The virtio definition is going to be a public interface, so if there is a chance that u16 is not enough in the future I would respin the patch with u32, otherwise u16. Christian