Re: [PATCH 0/2] virt: Set tpm-tis-device ppi property to off by default

2020-05-01 Thread Peter Maydell
On Mon, 27 Apr 2020 at 15:32, Eric Auger  wrote:
>
> Instead of using a compat in the mach-virt machine to force
> PPI off for all virt machines (PPI not supported by the
> tpm-tis-device device), let's simply change the default value
> in the sysbus device.
>
> Best Regards
>
> Eric
>
> Eric Auger (2):
>   tpm: tpm-tis-device: set PPI to false by default
>   hw/arm/virt: Remove the compat forcing tpm-tis-device PPI to off
>
>  hw/arm/virt.c   | 5 -
>  hw/tpm/tpm_tis_sysbus.c | 2 +-
>  2 files changed, 1 insertion(+), 6 deletions(-)

Reviewed-by: Peter Maydell 

Stefan, feel free to take these through your tree if you
think that makes sense.

thanks
-- PMM



Re: [PATCH 0/2] virt: Set tpm-tis-device ppi property to off by default

2020-04-29 Thread Stefan Berger

On 4/29/20 2:11 AM, Cornelia Huck wrote:

On Tue, 28 Apr 2020 16:13:05 -0400
Stefan Berger  wrote:


On 4/28/20 6:38 AM, Cornelia Huck wrote:

On Mon, 27 Apr 2020 16:31:43 +0200
Eric Auger  wrote:
  

Instead of using a compat in the mach-virt machine to force
PPI off for all virt machines (PPI not supported by the
tpm-tis-device device), let's simply change the default value
in the sysbus device.

Best Regards

Eric

Eric Auger (2):
tpm: tpm-tis-device: set PPI to false by default
hw/arm/virt: Remove the compat forcing tpm-tis-device PPI to off

   hw/arm/virt.c   | 5 -
   hw/tpm/tpm_tis_sysbus.c | 2 +-
   2 files changed, 1 insertion(+), 6 deletions(-)
  

I think we can apply the compat machines patch on top of these two
patches.

Q: Who will queue this and the machine types patch? It feels a bit
weird taking arm patches through the s390 tree :)
  

I can queue them and would send the PR soon. I am also fine with someone
else doing it.

Would be great if you could queue these together with
https://patchew.org/QEMU/20200424090314.544-1-coh...@redhat.com/
(hopefully should still apply cleanly, let me know if a respin is
needed).


It's probably better to respin:

> patches apply id:20200424090314.544-1-coh...@redhat.com
Applying: hw: add compat machines for 5.1
Using index info to reconstruct a base tree...
M    hw/arm/virt.c
Falling back to patching base and 3-way merge...
Auto-merging hw/arm/virt.c
CONFLICT (content): Merge conflict in hw/arm/virt.c
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch' to see the failed patch
Patch failed at 0001 hw: add compat machines for 5.1
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".





Re: [PATCH 0/2] virt: Set tpm-tis-device ppi property to off by default

2020-04-29 Thread Cornelia Huck
On Tue, 28 Apr 2020 16:13:05 -0400
Stefan Berger  wrote:

> On 4/28/20 6:38 AM, Cornelia Huck wrote:
> > On Mon, 27 Apr 2020 16:31:43 +0200
> > Eric Auger  wrote:
> >  
> >> Instead of using a compat in the mach-virt machine to force
> >> PPI off for all virt machines (PPI not supported by the
> >> tpm-tis-device device), let's simply change the default value
> >> in the sysbus device.
> >>
> >> Best Regards
> >>
> >> Eric
> >>
> >> Eric Auger (2):
> >>tpm: tpm-tis-device: set PPI to false by default
> >>hw/arm/virt: Remove the compat forcing tpm-tis-device PPI to off
> >>
> >>   hw/arm/virt.c   | 5 -
> >>   hw/tpm/tpm_tis_sysbus.c | 2 +-
> >>   2 files changed, 1 insertion(+), 6 deletions(-)
> >>  
> > I think we can apply the compat machines patch on top of these two
> > patches.
> >
> > Q: Who will queue this and the machine types patch? It feels a bit
> > weird taking arm patches through the s390 tree :)
> >  
> I can queue them and would send the PR soon. I am also fine with someone 
> else doing it.

Would be great if you could queue these together with
https://patchew.org/QEMU/20200424090314.544-1-coh...@redhat.com/
(hopefully should still apply cleanly, let me know if a respin is
needed).




Re: [PATCH 0/2] virt: Set tpm-tis-device ppi property to off by default

2020-04-28 Thread Stefan Berger

On 4/28/20 6:38 AM, Cornelia Huck wrote:

On Mon, 27 Apr 2020 16:31:43 +0200
Eric Auger  wrote:


Instead of using a compat in the mach-virt machine to force
PPI off for all virt machines (PPI not supported by the
tpm-tis-device device), let's simply change the default value
in the sysbus device.

Best Regards

Eric

Eric Auger (2):
   tpm: tpm-tis-device: set PPI to false by default
   hw/arm/virt: Remove the compat forcing tpm-tis-device PPI to off

  hw/arm/virt.c   | 5 -
  hw/tpm/tpm_tis_sysbus.c | 2 +-
  2 files changed, 1 insertion(+), 6 deletions(-)


I think we can apply the compat machines patch on top of these two
patches.

Q: Who will queue this and the machine types patch? It feels a bit
weird taking arm patches through the s390 tree :)

I can queue them and would send the PR soon. I am also fine with someone 
else doing it.





Re: [PATCH 0/2] virt: Set tpm-tis-device ppi property to off by default

2020-04-28 Thread Auger Eric
Hi Stefan,

On 4/27/20 10:21 PM, Stefan Berger wrote:
> On 4/27/20 10:31 AM, Eric Auger wrote:
>> Instead of using a compat in the mach-virt machine to force
>> PPI off for all virt machines (PPI not supported by the
>> tpm-tis-device device), let's simply change the default value
>> in the sysbus device.
> 
> There is no change in behavior on any arm machine due to this patch,
> right? So backporting would not be necessary?

Indeed, there is no functional change as we keep PPI off. My
understanding is we can safely remove the compat mechanism. I tested
migration between virt machine with compat to virt machine without
compat and conversely (without tpm-tis-device though) and it passed.

Thanks

Eric
> 
> 
>    Stefan
> 
> 




Re: [PATCH 0/2] virt: Set tpm-tis-device ppi property to off by default

2020-04-28 Thread Cornelia Huck
On Mon, 27 Apr 2020 16:31:43 +0200
Eric Auger  wrote:

> Instead of using a compat in the mach-virt machine to force
> PPI off for all virt machines (PPI not supported by the
> tpm-tis-device device), let's simply change the default value
> in the sysbus device.
> 
> Best Regards
> 
> Eric
> 
> Eric Auger (2):
>   tpm: tpm-tis-device: set PPI to false by default
>   hw/arm/virt: Remove the compat forcing tpm-tis-device PPI to off
> 
>  hw/arm/virt.c   | 5 -
>  hw/tpm/tpm_tis_sysbus.c | 2 +-
>  2 files changed, 1 insertion(+), 6 deletions(-)
> 

I think we can apply the compat machines patch on top of these two
patches.

Q: Who will queue this and the machine types patch? It feels a bit
weird taking arm patches through the s390 tree :)




Re: [PATCH 0/2] virt: Set tpm-tis-device ppi property to off by default

2020-04-27 Thread Stefan Berger

On 4/27/20 10:31 AM, Eric Auger wrote:

Instead of using a compat in the mach-virt machine to force
PPI off for all virt machines (PPI not supported by the
tpm-tis-device device), let's simply change the default value
in the sysbus device.


There is no change in behavior on any arm machine due to this patch, 
right? So backporting would not be necessary?



   Stefan