[Qemu-devel] [PATCH for-2.10 0/5] tests: acpi: make sure FADT is compared to reference table

Igor Mammedov posted 5 patches 6 years, 8 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/1501515652-33372-1-git-send-email-imammedo@redhat.com
Test FreeBSD passed
Test checkpatch passed
Test docker passed
Test s390x passed
tests/bios-tables-test.c | 30 ++++++++++++++++++------------
1 file changed, 18 insertions(+), 12 deletions(-)
[Qemu-devel] [PATCH for-2.10 0/5] tests: acpi: make sure FADT is compared to reference table
Posted by Igor Mammedov 6 years, 8 months ago
While refactoring i386/FADT generation to build_append_int_noprefix()            
and testing it, It turned out that FADT is only tested for valid                 
checksum but actual test for unintended changes isn't applied to it              
even though we have reference tables in tree.                                    
So here goes a couple of cleanups to reflect what fuctions do +                  
some comments and actual fix.                                                    
                                                                                 
Note to maintainer:                                                              
  FADT reference table is out of sync and should be updated along with           
  series applied.                                                                
                                                                                 
CC: "Michael S. Tsirkin" <mst@redhat.com>                                        
CC: Marcel Apfelbaum <marcel@redhat.com> 

Igor Mammedov (5):
  tests: acpi: move tested tables array allocation outside of
    test_acpi_dsdt_table()
  tests: acpi: init table descriptor in test_dst_table()
  tests: acpi: rename test_acpi_tables()/test_dst_table() to reflect its
    usage
  tests: acpi: add comments to fetch_rsdt_referenced_tables/data->tables
    usage
  tests: acpi: fix FADT not being compared to reference table

 tests/bios-tables-test.c | 30 ++++++++++++++++++------------
 1 file changed, 18 insertions(+), 12 deletions(-)

-- 
2.7.4


Re: [Qemu-devel] [PATCH for-2.10 0/5] tests: acpi: make sure FADT is compared to reference table
Posted by Michael S. Tsirkin 6 years, 8 months ago
On Mon, Jul 31, 2017 at 05:40:47PM +0200, Igor Mammedov wrote:
> While refactoring i386/FADT generation to build_append_int_noprefix()            
> and testing it, It turned out that FADT is only tested for valid                 
> checksum but actual test for unintended changes isn't applied to it              
> even though we have reference tables in tree.                                    
> So here goes a couple of cleanups to reflect what fuctions do +                  
> some comments and actual fix.                                                    
>                                                                                  
> Note to maintainer:                                                              
>   FADT reference table is out of sync and should be updated along with           
>   series applied.                                                                
>                                                                                  
> CC: "Michael S. Tsirkin" <mst@redhat.com>                                        
> CC: Marcel Apfelbaum <marcel@redhat.com> 

Absolutely good stuff, but not a bugfix as such (it's not that the
test is wrong, it's that we skip FADT for now)
so I don't think this is 2.10 material.

> Igor Mammedov (5):
>   tests: acpi: move tested tables array allocation outside of
>     test_acpi_dsdt_table()
>   tests: acpi: init table descriptor in test_dst_table()
>   tests: acpi: rename test_acpi_tables()/test_dst_table() to reflect its
>     usage
>   tests: acpi: add comments to fetch_rsdt_referenced_tables/data->tables
>     usage
>   tests: acpi: fix FADT not being compared to reference table
> 
>  tests/bios-tables-test.c | 30 ++++++++++++++++++------------
>  1 file changed, 18 insertions(+), 12 deletions(-)
> 
> -- 
> 2.7.4

Re: [Qemu-devel] [PATCH for-2.10 0/5] tests: acpi: make sure FADT is compared to reference table
Posted by Igor Mammedov 6 years, 8 months ago
On Wed, 2 Aug 2017 00:14:18 +0300
"Michael S. Tsirkin" <mst@redhat.com> wrote:

> On Mon, Jul 31, 2017 at 05:40:47PM +0200, Igor Mammedov wrote:
> > While refactoring i386/FADT generation to build_append_int_noprefix()            
> > and testing it, It turned out that FADT is only tested for valid                 
> > checksum but actual test for unintended changes isn't applied to it              
> > even though we have reference tables in tree.                                    
> > So here goes a couple of cleanups to reflect what fuctions do +                  
> > some comments and actual fix.                                                    
> >                                                                                  
> > Note to maintainer:                                                              
> >   FADT reference table is out of sync and should be updated along with           
> >   series applied.                                                                
> >                                                                                  
> > CC: "Michael S. Tsirkin" <mst@redhat.com>                                        
> > CC: Marcel Apfelbaum <marcel@redhat.com>   
> 
> Absolutely good stuff, but not a bugfix as such (it's not that the
> test is wrong, it's that we skip FADT for now)
> so I don't think this is 2.10 material.
Agreed, it could go in when 2.11 merge window is open.

> 
> > Igor Mammedov (5):
> >   tests: acpi: move tested tables array allocation outside of
> >     test_acpi_dsdt_table()
> >   tests: acpi: init table descriptor in test_dst_table()
> >   tests: acpi: rename test_acpi_tables()/test_dst_table() to reflect its
> >     usage
> >   tests: acpi: add comments to fetch_rsdt_referenced_tables/data->tables
> >     usage
> >   tests: acpi: fix FADT not being compared to reference table
> > 
> >  tests/bios-tables-test.c | 30 ++++++++++++++++++------------
> >  1 file changed, 18 insertions(+), 12 deletions(-)
> > 
> > -- 
> > 2.7.4  


Re: [Qemu-devel] [PATCH for-2.10 0/5] tests: acpi: make sure FADT is compared to reference table
Posted by Michael S. Tsirkin 6 years, 8 months ago
On Wed, Aug 02, 2017 at 09:51:22AM +0200, Igor Mammedov wrote:
> On Wed, 2 Aug 2017 00:14:18 +0300
> "Michael S. Tsirkin" <mst@redhat.com> wrote:
> 
> > On Mon, Jul 31, 2017 at 05:40:47PM +0200, Igor Mammedov wrote:
> > > While refactoring i386/FADT generation to build_append_int_noprefix()            
> > > and testing it, It turned out that FADT is only tested for valid                 
> > > checksum but actual test for unintended changes isn't applied to it              
> > > even though we have reference tables in tree.                                    
> > > So here goes a couple of cleanups to reflect what fuctions do +                  
> > > some comments and actual fix.                                                    
> > >                                                                                  
> > > Note to maintainer:                                                              
> > >   FADT reference table is out of sync and should be updated along with           
> > >   series applied.                                                                
> > >                                                                                  
> > > CC: "Michael S. Tsirkin" <mst@redhat.com>                                        
> > > CC: Marcel Apfelbaum <marcel@redhat.com>   
> > 
> > Absolutely good stuff, but not a bugfix as such (it's not that the
> > test is wrong, it's that we skip FADT for now)
> > so I don't think this is 2.10 material.
> Agreed, it could go in when 2.11 merge window is open.

thanks,pls remember to repost or ping then.

> > 
> > > Igor Mammedov (5):
> > >   tests: acpi: move tested tables array allocation outside of
> > >     test_acpi_dsdt_table()
> > >   tests: acpi: init table descriptor in test_dst_table()
> > >   tests: acpi: rename test_acpi_tables()/test_dst_table() to reflect its
> > >     usage
> > >   tests: acpi: add comments to fetch_rsdt_referenced_tables/data->tables
> > >     usage
> > >   tests: acpi: fix FADT not being compared to reference table
> > > 
> > >  tests/bios-tables-test.c | 30 ++++++++++++++++++------------
> > >  1 file changed, 18 insertions(+), 12 deletions(-)
> > > 
> > > -- 
> > > 2.7.4