From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O5FiH-0006sY-92 for qemu-devel@nongnu.org; Fri, 23 Apr 2010 06:02:21 -0400 Received: from [140.186.70.92] (port=50312 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O5FiE-0006Ux-Ss for qemu-devel@nongnu.org; Fri, 23 Apr 2010 06:02:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O5FaD-0004sS-CJ for qemu-devel@nongnu.org; Fri, 23 Apr 2010 05:54:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37514) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5FaD-0004sE-4r for qemu-devel@nongnu.org; Fri, 23 Apr 2010 05:54:01 -0400 Message-ID: <4BD16E30.5080502@redhat.com> Date: Fri, 23 Apr 2010 12:53:52 +0300 From: Avi Kivity MIME-Version: 1.0 References: <1271829445-5328-1-git-send-email-tamura.yoshiaki@lab.ntt.co.jp> <1271829445-5328-5-git-send-email-tamura.yoshiaki@lab.ntt.co.jp> In-Reply-To: <1271829445-5328-5-git-send-email-tamura.yoshiaki@lab.ntt.co.jp> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [RFC PATCH 04/20] Make QEMUFile buf expandable, and introduce qemu_realloc_buffer() and qemu_clear_buffer(). List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Yoshiaki Tamura Cc: aliguori@us.ibm.com, kvm@vger.kernel.org, ohmura.kei@lab.ntt.co.jp, mtosatti@redhat.com, qemu-devel@nongnu.org, yoshikawa.takuya@oss.ntt.co.jp On 04/21/2010 08:57 AM, Yoshiaki Tamura wrote: > Currently buf size is fixed at 32KB. It would be useful if it could > be flexible. > > Why is this needed? The real buffering is in the kernel anyways; this is only used to reduce the number of write() syscalls. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic.