[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/4] x86/svm: cleanup svm.c


  • To: Xenia Ragiadakou <burzalodowa@xxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 21 Feb 2023 12:12:05 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=slUQ2bLp9MqEYH5/EwKWdF1TzdAfLs4g00vpbimjalM=; b=ITVkqIg8sbkY/4tox0pYUSlvHGXwcaag2b9IkSOccnNJSpu8cPQ7lYm6zbANRm5Q33nnnGMe/OUcHNcXcKXwJLS2Tk1is/7jcMdHX7twhhfh5BU1ldGbv+kPO9vo4WBPbxvHotVj1pHDQDsfSvo9EYs/cAest+8GbE9Cyv2wb6Qnrq4FUzxfjqNp0QcXlIQcQZmmZxU3vtu4fU9W00VlpqCLGjp5MzPKhfWyNZVXOQ6JANXNAJnaQLNP0jvuCP7ho/C2QrNoCSJ556tPXqxcVti0ne9QgGoY9QZbsj5+FLD1lPfRgx9UCHrwWncf9jxt0iYfop5QxBXaWILLid6zIw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NHNY6iR5u0QieUSUehsOeFJ0uh5J34GQ8XPxj7XWuFbLqAQ3faeD0RT7a7zpvKQKg8G47W4NOiWuTp71TxsjbfyqKE5uGmu7ecbs0pj2hlabDIh4z5Plm+ieAM8IuDYAuqT1eLpwoG5j9VH27iLqxRSwlXnO1zozQT25B4yBEPaFUAPaoQN4dW0txfiRZVNORp/Wx/6ZQ0M2Y7tgTHA7Lbuvn6QYm+hftKBBnd8oZz2rhgwcSwnM9AElt0vAkLVYar0fmtziaPvUFZGeSR2ADY/zgfTlaXIdYnnHt/A+/cEaK76BxGMD7Zl9tatI49j7rsygwZ5PMkSufXlBE8Ew7g==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Delivery-date: Tue, 21 Feb 2023 11:12:11 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 21.02.2023 08:45, Xenia Ragiadakou wrote:
> Hi Andrew,
> 
> On 2/21/23 00:12, Andrew Cooper wrote:
>> On 17/02/2023 6:48 pm, Xenia Ragiadakou wrote:
>>> Do not include the headers:
>>>    xen/irq.h
>>>    asm/hvm/svm/intr.h
>>>    asm/io.h
>>>    asm/mem_sharing.h
>>>    asm/regs.h
>>
>> Out of interest, how are you calculating these?  They're accurate as far
>> as I can tell.
> 
> I do not use a script (at least not a decent one), if that 's the 
> question :) . I verify that none of the symbols defined or declared in 
> the header is used in the file including the header.
> 
>>
>> Looking at asm/hvm/svm/*, intr.h itself can be straight deleted,
>> svmdebug.h can be merged into vmcb.h, and all the others can move into
>> xen/arch/x86/hvm/svm/ as local headers.  None of them have any business
>> being included elsewhere in Xen.
> 
> I can send another patch for that.
> 
>>
>>> because none of the declarations and macro definitions in them is used.
>>> Sort alphabetically the rest of the headers.
>>
>> Minor grammar point. "Sort the rest of the headers alphabetically" would
>> be a more normal way of phrasing this.
> 
> I will fix it in v2.

I guess this can be adjusted while committing, seeing that ...

>>> Remove the forward declaration of svm_function_table and place start_svm()
>>> after the svm_function_table's definition.
>>>
>>> Replace double new lines with one.
>>>
>>> No functional change intended.
>>>
>>> Signed-off-by: Xenia Ragiadakou <burzalodowa@xxxxxxxxx>
>>
>> Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>

... it's otherwise ready to be committed.

Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.