From: Christian Borntraeger Subject: Re: [PATCH/RFC] virtio_blk: check for hardsector size from host Date: Thu, 29 May 2008 10:11:32 +0200 Message-ID: <200805291011.32690.borntraeger@de.ibm.com> References: <200805271105.00077.borntraeger@de.ibm.com> <200805291804.11550.rusty@rustcorp.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: Jens Axboe , virtualization@lists.linux-foundation.org, kvm@vger.kernel.org To: Rusty Russell Return-path: Received: from mtagate4.de.ibm.com ([195.212.29.153]:52858 "EHLO mtagate4.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751783AbYE2ILk (ORCPT ); Thu, 29 May 2008 04:11:40 -0400 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate4.de.ibm.com (8.13.8/8.13.8) with ESMTP id m4T8BaK9266376 for ; Thu, 29 May 2008 08:11:36 GMT Received: from d12av03.megacenter.de.ibm.com (d12av03.megacenter.de.ibm.com [9.149.165.213]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v8.7) with ESMTP id m4T8BZc52580636 for ; Thu, 29 May 2008 10:11:35 +0200 Received: from d12av03.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av03.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m4T8BYhX021905 for ; Thu, 29 May 2008 10:11:34 +0200 In-Reply-To: <200805291804.11550.rusty@rustcorp.com.au> Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: Am Donnerstag, 29. Mai 2008 schrieb Rusty Russell: > On Tuesday 27 May 2008 19:04:59 Christian Borntraeger wrote: > > Rusty, Jens, > > > > I need your opinion on the following patch. It seems to work, but I would > > like to get some feedback if this patch is the right approach: > > Looks like the right approach to me. Don't know about the block side of it... > > Just that u64 seems like overkill: u32? I looked at blksize_t, which seems to be long. So I decided to use u64 which should be enough (but still overkill...) on all platforms. While we are at it. Since we dont convert endianess any longer, should I change all the __le{..} definitions to __u{..} in virtio_blk.h ? Christian