From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xiao Guangrong Subject: Re: [Qemu-devel] [PATCH v3 14/32] pc-dimm: drop the prefix of pc-dimm Date: Tue, 13 Oct 2015 11:32:20 +0800 Message-ID: <561C7B44.3050306@linux.intel.com> References: <1444535584-18220-1-git-send-email-guangrong.xiao@linux.intel.com> <1444535584-18220-15-git-send-email-guangrong.xiao@linux.intel.com> <561BE34E.7030901@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: ehabkost@redhat.com, kvm@vger.kernel.org, mst@redhat.com, gleb@kernel.org, mtosatti@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com, dan.j.williams@intel.com, rth@twiddle.net To: Eric Blake , pbonzini@redhat.com, imammedo@redhat.com Return-path: Received: from mga14.intel.com ([192.55.52.115]:6116 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751009AbbJMDia (ORCPT ); Mon, 12 Oct 2015 23:38:30 -0400 In-Reply-To: <561BE34E.7030901@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 10/13/2015 12:43 AM, Eric Blake wrote: > On 10/10/2015 09:52 PM, Xiao Guangrong wrote: >> This patch is generated by this script: >> >> find ./ -name "*.[ch]" -o -name "*.json" -o -name "trace-events" -type f \ >> | xargs sed -i "s/PC_DIMM/DIMM/g" >> >> find ./ -name "*.[ch]" -o -name "*.json" -o -name "trace-events" -type f \ >> | xargs sed -i "s/PCDIMM/DIMM/g" >> >> find ./ -name "*.[ch]" -o -name "*.json" -o -name "trace-events" -type f \ >> | xargs sed -i "s/pc_dimm/dimm/g" >> >> find ./ -name "trace-events" -type f | xargs sed -i "s/pc-dimm/dimm/g" >> >> It prepares the work which abstracts dimm device type for both pc-dimm and >> nvdimm >> >> Signed-off-by: Xiao Guangrong >> --- >> hmp.c | 2 +- > >> +++ b/qapi-schema.json >> @@ -3684,9 +3684,9 @@ >> { 'command': 'query-memdev', 'returns': ['Memdev'] } >> >> ## >> -# @PCDIMMDeviceInfo: >> +# @DIMMDeviceInfo: >> # >> -# PCDIMMDevice state information >> +# DIMMDevice state information >> # >> # @id: #optional device's ID >> # >> @@ -3706,7 +3706,7 @@ >> # >> # Since: 2.1 >> ## >> -{ 'struct': 'PCDIMMDeviceInfo', >> +{ 'struct': 'DIMMDeviceInfo', >> 'data': { '*id': 'str', >> 'addr': 'int', >> 'size': 'int', >> @@ -3725,7 +3725,7 @@ >> # >> # Since: 2.1 >> ## >> -{ 'union': 'MemoryDeviceInfo', 'data': {'dimm': 'PCDIMMDeviceInfo'} } >> +{ 'union': 'MemoryDeviceInfo', 'data': {'dimm': 'DIMMDeviceInfo'} } > > Struct names are not ABI, so this change is safe. > > I have not reviewed the rest of the patch, but I don't see any problems > from the qapi perspective. Thanks for your review, Eric! :)