On Fri, Jun 21, 2024 at 03:15:19AM +, Michael Kelley wrote:
> From: Wei Liu Sent: Thursday, June 20, 2024 6:48 PM
> >
> > The intent of the code snippet is to always return 0 for both fields.
> > The check is wrong though. Fix that.
> >
> > This is discovered by this call in VFIO:
> >
> >
In a TDX VM without paravisor, currently the default timer is the Hyper-V
timer, which depends on the slow VM Reference Counter MSR: the Hyper-V TSC
page is not enabled in such a VM because the VM uses Invariant TSC as a
better clocksource and it's challenging to mark the Hyper-V TSC page shared
in
From: Wei Liu Sent: Thursday, June 20, 2024 6:48 PM
>
> The intent of the code snippet is to always return 0 for both fields.
> The check is wrong though. Fix that.
>
> This is discovered by this call in VFIO:
>
> pci_read_config_byte(vdev->pdev, PCI_INTERRUPT_PIN, &pin);
>
> The old code
The intent of the code snippet is to always return 0 for both fields.
The check is wrong though. Fix that.
This is discovered by this call in VFIO:
pci_read_config_byte(vdev->pdev, PCI_INTERRUPT_PIN, &pin);
The old code does not set *val to 0 because the second half of the check is
incorrect
> From: Rachel Menge
> Sent: Thursday, June 20, 2024 3:51 PM
> [...]
LGTM
Reviewed-by: Dexuan Cui
> From: Michael Kelley
> Sent: Thursday, June 20, 2024 2:19 PM
> To: Dexuan Cui ; KY Srinivasan
> [...]
> > --- a/arch/x86/kernel/cpu/mshyperv.c
> > +++ b/arch/x86/kernel/cpu/mshyperv.c
> > @@ -449,9 +449,13 @@ static void __init ms_hyperv_init_platform(void)
> > ms_hyperv.hint
There are lingering hv_fcopy declarations which do not have definitions.
The fcopy driver was removed in commit ec314f61e4fc ("Drivers: hv: Remove
fcopy driver").
Therefore, remove the hv_fcopy declarations which are no longer needed
or defined.
Fixes: ec314f61e4fc ("Drivers: hv: Remove fcopy dri
From: Dexuan Cui Sent: Tuesday, June 18, 2024 5:25 PM
>
> In a TDX VM without paravisor, currently the default timer is the Hyper-V
> timer, which depends on the slow VM Reference Counter MSR: the Hyper-V TSC
> page is not enabled in such a VM because the VM uses Invariant TSC as a
> better clock
On 6/18/2024 5:25 PM, Dexuan Cui wrote:
In a TDX VM without paravisor, currently the default timer is the Hyper-V
timer, which depends on the slow VM Reference Counter MSR: the Hyper-V TSC
page is not enabled in such a VM because the VM uses Invariant TSC as a
better clocksource and it's chall
The function traverses bitmap with for_each_clear_bit() just to allocate
a bit atomically. Simplify it by using dedicated find_and_set_bit().
Signed-off-by: Yury Norov
Reviewed-by: Michael Kelley
Acked-by: Wei Liu
Acked-by: Bjorn Helgaas
---
drivers/pci/controller/pci-hyperv.c | 8 +++-
1
10 matches
Mail list logo