[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a5f51ed8-b7b0-8f28-0e17-8f16ccb9abe1@linux.intel.com>
Date: Mon, 3 Apr 2023 14:00:12 -0700
From: "Patel, Nirmal" <nirmal.patel@...ux.intel.com>
To: Xinghui Li <korantwork@...il.com>
Cc: Bjorn Helgaas <helgaas@...nel.org>, kbusch@...nel.org,
jonathan.derrick@...ux.dev, lpieralisi@...nel.org,
linux-pci@...r.kernel.org, linux-kernel@...r.kernel.org,
Xinghui Li <korantli@...cent.com>
Subject: Re: [PATCH v4] PCI: vmd: Add the module param to adjust MSI mode
On 4/2/2023 7:34 AM, Xinghui Li wrote:
> On Thu, Mar 30, 2023 at 2:49 PM Patel, Nirmal
> <nirmal.patel@...ux.intel.com> wrote:
>> How about adding a boolean flag by comparing user input for module
>> parameter msi_remap? and add the flag at
>>
>> - if (!(features & VMD_FEAT_CAN_BYPASS_MSI_REMAP) || msi_flag
>> || offset[0] || offset[1])
>>
>> Correct if I am wrong, but in this way we can cover all the cases.
>> If user adds msi_remap=on, msi_flag=true and enables remapping.
>> If user adds msi_remap=off, msi_flag=false and disables remapping.
>> If user doesn't add anything, msi_flag=false and decision will be
>> made same as current implementation. This will cover guest OS case
>> as well.
>>
> Sorry, I don't quite get your point. How is msi_flag assigned?
> Do you mean when msi_remap=no, the msi_flag is assigned as true?
> And msi_remap=off, the msi_flag is assigned as false?
>
> Thanks~
if msi_remap=on, then msi_flag=true;
if msi_remap=off, then msi_flag=false.
Powered by blists - more mailing lists