From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: qemu/hw/device-assignment: questions about msix_table_page Date: Tue, 28 Apr 2009 12:31:09 +0300 Message-ID: <49F6CCDD.2040804@redhat.com> References: <20090427104117.GB29082@redhat.com> <200904272116.15710.sheng@linux.intel.com> <20090427135134.GB2504@redhat.com> <200904272203.59909.sheng@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "Michael S. Tsirkin" , Marcelo Tosatti , kvm@vger.kernel.org To: Sheng Yang Return-path: Received: from mx2.redhat.com ([66.187.237.31]:60287 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756828AbZD1JbJ (ORCPT ); Tue, 28 Apr 2009 05:31:09 -0400 In-Reply-To: <200904272203.59909.sheng@linux.intel.com> Sender: kvm-owner@vger.kernel.org List-ID: Sheng Yang wrote: >>> msix_table_page is a page, and mmap allocate memory on page boundary. So >>> I use it. >>> >> Just wondering, would e.g. posix_memalign work here as well? >> > > Um, I think it should work too. > I think qemu_malloc() would work just as well. The hardware never sees the page, so it doesn't need to be aligned. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic.