SlideShare a Scribd company logo
Practical Xen Testing at Intel
                              Nov. 2009


        Haicheng Li <haicheng.li@intel.com>
            Jiajun Xu <jiajun.xu@intel.com>


                       Xen Summit Asia 2009
Legal Information

•   INFORMATION IN THIS DOCUMENT IS PROVIDED IN CONNECTION WITH INTEL
    PRODUCTS. NO LICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, TO
    ANY INTELLECTUAL PROPERTY RIGHTS IS GRANTED BY THIS DOCUMENT. EXCEPT
    AS PROVIDED IN INTEL'S TERMS AND CONDITIONS OF SALE FOR SUCH PRODUCTS,
    INTEL ASSUMES NO LIABILITY WHATSOEVER AND INTEL DISCLAIMS ANY EXPRESS
    OR IMPLIED WARRANTY, RELATING TO SALE AND/OR USE OF INTEL PRODUCTS
    INCLUDING LIABILITY OR WARRANTIES RELATING TO FITNESS FOR A PARTICULAR
    PURPOSE, MERCHANTABILITY, OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR
    OTHER INTELLECTUAL PROPERTY RIGHT.
•   Intel may make changes to specifications, product descriptions, and plans at any time, without
    notice.
•   All products, computer systems, dates, and figures specified are preliminary based on current
    expectations, and are subject to change without notice.
•   Performance tests and ratings are measured using specific computer systems and/or
    components and reflect the approximate performance of Intel products as measured by those
    tests. Any difference in system hardware or software design or configuration may affect
    actual performance.
•   Intel is a trademark of Intel Corporation in the U.S. and other countries.
•   *Other names and brands may be claimed as the property of others.
•   Copyright © 2009, Intel Corporation. All rights are protected.



                                                                  Software and Services Group
                                                                                                     2
                                                                                                     2
Agenda
• The Overview – how test helps Xen?
• Test Infrastructure – the world under automation
• Best Practices – practical test approaches
• Some Proposals – to improve Xen quality




                                               Software and Services Group
                                                                             3
                                                                             3
The Overview




               Software and Services Group
                                             4
                                             4
Progressive Xen Testing
                                              VT-x                                                SR-IOV
Intel VT
                                 VT- i                                                VT-d


           Dec. 2005       Oct. 2006     May. 2007      Jan. 2008         Aug. 2008                   Apr. 2009
           Xen-3.0.0       Xen-3.0.3     Xen-3.1.0      Xen-3.2.0         Xen-3.3.0                   Xen-3.4.0

XEN
                            • Hundreds of Xen patches Monthly !!!
                                                        XEN Development



                            •   How can TEST help?
                                  •
Test             HVM x86/IA64          PV Guest      Timers     NUMA      EPT      Power Management            RAS
Coverage
                 SMP VM                  Expose regression timely
                                 Live Migration
                                              TXT Real Mode Device Pass-Through                                SR-IOV


                                  •
                       3.0.x Release
                                         Ensure release quality
                                          3.1.x Release 3.2.x Release 3.3.x Release                   3.4.x Release
Test                   Test Reports         Test Reports       Test Reports        Test Reports       Test Reports
Deliverables
                          Nightly Test Reports                   Weekly Test Reports              Biweekly Test Reports

                                                           Actively Bug Tracking




                                                                                     Software and Services Group
                                                                                                                          5
                                                                                                                          5
Progressive Xen Testing
                                              VT-x                                               SR-IOV
Intel VT
                                 VT- i                                                 VT-d


           Dec. 2005       Oct. 2006     May. 2007      Jan. 2008          Aug. 2008                 Apr. 2009
           Xen-3.0.0       Xen-3.0.3     Xen-3.1.0      Xen-3.2.0          Xen-3.3.0                 Xen-3.4.0

XEN
                                                        XEN Development




Test             HVM x86/IA64          PV Guest      Timers      NUMA      EPT      Power Management           RAS
Coverage
                 SMP VM          Live Migration      TXT       Real Mode       Device Pass-Through             SR-IOV



                       3.0.x Release        3.1.x Release
                                                                ~300 major Release reported,
                                                                3.2.x Release 3.3.x
                                                                                    bugs 3.4.x Release
Test
Deliverables
                       Test Reports         Test Reports               20% of Xen Bugzilla
                                                                Test Reports  Test Reports Test Reports

                          Nightly Test Reports                    Weekly Test Reports           Biweekly Test Reports

                                                            Actively Bug Tracking




                                                                                     Software and Services Group
                                                                                                                        6
                                                                                                                        6
Test Infrastructure




                  Software and Services Group
                                                7
                                                7
Solid Test Infrastructure
• Test Automation in Everywhere
   – auto daily testing
   – auto release resting
   – auto patch testing
• Test Infrastructure is The Basis


                   •   Extendable Test Framework
                   •   Auto Build System
                   •   Test Result Center
                   •   Patch Test System


                                            Software and Services Group
                                                                          8
                                                                          8
Extendable Test Framework
                                                         Manual Testing
                                 Regular Testing
  Auto Build                     *XVS            Result submitter to Result Center




                        Common lib              *XVS: eXtendable Validation System
       Management Module
                                                                                      VT-d/
Controller             Report Generator                           VT-d                | -- VT-d lib
                                                                                      | -- test1
                                                                                      | -- test2
       Call with Scenario file
                                                                SR-IOV

                                          Test Suite Pool




                                                                     …
             Harness                                                                  SR-IOV/
                                                                 Power                | -- IOV lib
        Test Harness
                                                                                      | -- test1
                                                                                      | -- test2
                                                                  RAS



                                                              Software and Services Group
                                                                                                      9
                                                                                                      9
Test Result Center




    Find Defects Out
         Timely!




                  Software and Services Group
                                                10
                                                10
Patch Test System

           Recipe Submit UI         Machine Status UI           Result UI

        DB Tool                                                       Web UI




                        Receive
                                     Core Management
   Runtime DB            Recipe
                                                          Test Schedule                 Test Box 1
                                                                     Local Control
                          Scheduler
                                                                       Machine          Test Box 2
 Recipe




                                                                                              …
           Test Info                                                      Test Machine
R-Queue                                                                        Pool
                        Test Info            XVS
             Users                                                                      Test Box N
                                       Test Resources
  OSD

            Results                  Results Processing
Machines




                                                                Software and Services Group
                                                                                                     11
                                                                                                     11
Patch Test System




Ensure Patch Quality Before
     Submitting Out!




                     Software and Services Group
                                                   12
                                                   12
Best Practices




                 Software and Services Group
                                               13
                                               13
Power Management Testing
• Challenge
   – How to achieve integrated Power Management testing?
• Test Approach
   – Automated functionality testing.
        •   Interface : xenpm, hypercall, sysfs interface
        •   Coverage : idle, runtime, Dom0/HVM S3
   –   Performance measurement.
        •   Scenario : idle, runtime, benchmarks
        •   Platform : laptop & server
        •   OS          : Linux, Windows
        •   Publish : web site




                                                            Software and Services Group
                                                                                          14
                                                                                          14
Power Management Testing
• Challenge
   – How to achieve integrated power testing?
• Test Approach
   – Automated functionality testing.
        •   Interface : xenpm, hypercall, sys i/f
        •   Coverage : idle, runtime, Dom0/HVM S3
   –   Performance measurement.
        •   Scenario : idle, runtime, benchmarks
        •   Platform : laptop & server
        •   OS          : Linux, Windows
        •   Publish : web site




                                                    Software and Services Group
                                                                                  15
                                                                                  15
RAS Testing
• Challenge
   – How to achieve good test coverage?
• Test Approach
   – Add test stub to Xen to dump page types.
   – Add test stub to Xen to translate address from guest to host.
   – Use ACPI4.0/APEI to trigger CPU/Mem *MCE to specific pages.
• To Do
   – How to stress?
         •   Option: add more software test interface to *MCE handlers.
   –   CPU Migration
   –   MEM hot-plug
                                                *MCE: Machine Check Exception




                                                           Software and Services Group
                                                                                         16
                                                                                         16
RAS Testing
• Challenge
   – How to achieve good test coverage?
• Test Approach
   – Add test stub to Xen to dump page types.
   – Add test stub to Xen to What MCE test i/f guest to host.
                              translate address from Linux provides?
   – Use ACPI4.0/APEI to trigger CPU/Mem to trigger fake MCE
                             • MCE injector *MCE to specific pages.
                                • madvise syscall to poison page
• To Do                         • HWPosion injector to poison page
   – How to stress?             •……
         •   Option: add more software test interface to *MCE handlers.
   –   CPU Migration
   –   MEM hot-plug
                                                *MCE: Machine Check Error




                                                           Software and Services Group
                                                                                         17
                                                                                         17
VT-d/SR-IOV Testing
• Challenge
   – Hardware variety & complexity : platforms + devices
• Test Approach
   – Select typical test configurations.
         •   Platform : laptop -> desktop -> server
         •   Device : NIC, USB, SATA
         •   PCI type : PCIE MSI, PCIE INTx, PCI INTx
         •   OS         : Linux, Windows
   –   Use NIC to achieve test automation.
         •   Methods : ping, scp (file copy), ssh
         •   Coverage : static assignment + VT-d hotplug
         •   Multiple-devices assignment.




                                                           Software and Services Group
                                                                                         18
                                                                                         18
Some Proposals




                 Software and Services Group
                                               19
                                               19
Improve Xen Quality
• Source Control
   – Synchronize source control for Ioemu, Dom0 and Xen.
        •   E.g. VT-d is usually broken by ioemu check-in

• Bug Tracking
   – Well track bug state in Xen Bugzilla
        •   Current Xen BZ full of obsolete bug data
        •   ~500 bugs , 30% Xen Bugzilla, are NEW!

• Xen Testability
   – More built-in test features for Xen?
        •   It’s a trend for Linux: memleak checker, fault injector, ...




                                                                Software and Services Group
                                                                                              20
                                                                                              20
Questions?




             Software and Services Group
                                           21
                                           21
Backup




         Software and Services Group
                                       22
                                       22
Regular Testing

To keep Xen from regressions

                 Build Check        Booting Tests      Basic Functional Tests


      C/S Pull   Auto Build          Auto Install       Regression Testing              Bug Verification
           Daily Build                                          *BAT Testing

                                         Daily *BAT Test Cycle
                                                                *BAT: Build Acceptance Test
         Full Scope Functional Tests


            Functionality Testing        Performance Testing        Stress Testing          Others

                                               System Testing

                                       Monthly System Test Cycle



                                                                          Software and Services Group
                                                                                                           23
                                                                                                           23
Release Testing

To make qualified Xen release

                 Build Check        Booting Tests      Basic Functional Tests


      C/S Pull   Auto Build          Auto Install       Regression Testing              Bug Verification
          Release Build                                         *BAT Testing

                                       Release *BAT Test Cycle
                                                                *BAT: Build Acceptance Test
         Full Scope Functional Tests


            Functionality Testing        Performance Testing        Stress Testing          Others

                                               System Testing

                                       Release System Test Cycle



                                                                          Software and Services Group
                                                                                                           24
                                                                                                           24
Patch Testing

To ensure patch quality for Xen



                        Build Check   Booting Tests      Basic Functional Tests


                        Auto Build     Auto Install           Regression Testing
         Unit Testing                         Patch Testing

                                Patch Test Cycle




                                                                    Software and Services Group
                                                                                                  25
                                                                                                  25

More Related Content

PPTX
Apache Cloudstack QA Strategy
PDF
Uss Overview Adira
PPTX
Data flow diagram(laptop assembly plant)
PDF
The Cortex-A15 Verification Story
PDF
Roy omap validation_dvc_lub_092106
PDF
Tegra 4 outperforms snapdragon
PPTX
Openstack@ebay.pptx
ODP
Top 10 hypervisors
Apache Cloudstack QA Strategy
Uss Overview Adira
Data flow diagram(laptop assembly plant)
The Cortex-A15 Verification Story
Roy omap validation_dvc_lub_092106
Tegra 4 outperforms snapdragon
Openstack@ebay.pptx
Top 10 hypervisors

Similar to Practical Xen Testing At Intel (20)

PDF
Software Testen mit Visual Studio Lab Management
PDF
Xen community update
PDF
Xen Community Update 2011
PDF
Citrix Xs Update For Dataplex Nov 09
PDF
Embedded is not special
PPTX
Xen Project Update LinuxCon Brazil
PPT
Next Gen Datacenter
PPTX
Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Software Testing wit...
PPTX
Xen in the Cloud at SCALE 10x
PDF
Xen.org Latinoware 2009
PDF
下午4 intel michael.fu_meego session day
PDF
XS Japan 2008 Project Status English
PPTX
Xen cloud platform v1.1 (given at Build a Cloud Day in Antwerp)
PPSX
LinuxCon NA 2012: Virtualization in the cloud featuring xen
PPTX
PPTX
Virtualization in the Cloud @ Build a Cloud Day SFO May 2012
PDF
What is new in Citrix xen Client
PPTX
DevOps and Cloud at NI
ODP
A Xen Case Study
PDF
What’s New ?Linux on System z
Software Testen mit Visual Studio Lab Management
Xen community update
Xen Community Update 2011
Citrix Xs Update For Dataplex Nov 09
Embedded is not special
Xen Project Update LinuxCon Brazil
Next Gen Datacenter
Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Software Testing wit...
Xen in the Cloud at SCALE 10x
Xen.org Latinoware 2009
下午4 intel michael.fu_meego session day
XS Japan 2008 Project Status English
Xen cloud platform v1.1 (given at Build a Cloud Day in Antwerp)
LinuxCon NA 2012: Virtualization in the cloud featuring xen
Virtualization in the Cloud @ Build a Cloud Day SFO May 2012
What is new in Citrix xen Client
DevOps and Cloud at NI
A Xen Case Study
What’s New ?Linux on System z
Ad

More from The Linux Foundation (20)

PDF
ELC2019: Static Partitioning Made Simple
PDF
XPDDS19: How TrenchBoot is Enabling Measured Launch for Open-Source Platform ...
PDF
XPDDS19 Keynote: Xen in Automotive - Artem Mygaiev, Director, Technology Solu...
PDF
XPDDS19 Keynote: Xen Project Weather Report 2019 - Lars Kurth, Director of Op...
PDF
XPDDS19 Keynote: Unikraft Weather Report
PDF
XPDDS19 Keynote: Secret-free Hypervisor: Now and Future - Wei Liu, Software E...
PDF
XPDDS19 Keynote: Xen Dom0-less - Stefano Stabellini, Principal Engineer, Xilinx
PDF
XPDDS19 Keynote: Patch Review for Non-maintainers - George Dunlap, Citrix Sys...
PDF
XPDDS19: Memories of a VM Funk - Mihai Donțu, Bitdefender
PPTX
OSSJP/ALS19: The Road to Safety Certification: Overcoming Community Challeng...
PPTX
OSSJP/ALS19: The Road to Safety Certification: How the Xen Project is Making...
PDF
XPDDS19: Speculative Sidechannels and Mitigations - Andrew Cooper, Citrix
PDF
XPDDS19: Keeping Coherency on Arm: Reborn - Julien Grall, Arm ltd
PDF
XPDDS19: QEMU PV Backend 'qdevification'... What Does it Mean? - Paul Durrant...
PDF
XPDDS19: Status of PCI Emulation in Xen - Roger Pau Monné, Citrix Systems R&D
PDF
XPDDS19: [ARM] OP-TEE Mediator in Xen - Volodymyr Babchuk, EPAM Systems
PDF
XPDDS19: Bringing Xen to the Masses: The Story of Building a Community-driven...
PDF
XPDDS19: Will Robots Automate Your Job Away? Streamlining Xen Project Contrib...
PDF
XPDDS19: Client Virtualization Toolstack in Go - Nick Rosbrook & Brendan Kerr...
PDF
XPDDS19: Core Scheduling in Xen - Jürgen Groß, SUSE
ELC2019: Static Partitioning Made Simple
XPDDS19: How TrenchBoot is Enabling Measured Launch for Open-Source Platform ...
XPDDS19 Keynote: Xen in Automotive - Artem Mygaiev, Director, Technology Solu...
XPDDS19 Keynote: Xen Project Weather Report 2019 - Lars Kurth, Director of Op...
XPDDS19 Keynote: Unikraft Weather Report
XPDDS19 Keynote: Secret-free Hypervisor: Now and Future - Wei Liu, Software E...
XPDDS19 Keynote: Xen Dom0-less - Stefano Stabellini, Principal Engineer, Xilinx
XPDDS19 Keynote: Patch Review for Non-maintainers - George Dunlap, Citrix Sys...
XPDDS19: Memories of a VM Funk - Mihai Donțu, Bitdefender
OSSJP/ALS19: The Road to Safety Certification: Overcoming Community Challeng...
OSSJP/ALS19: The Road to Safety Certification: How the Xen Project is Making...
XPDDS19: Speculative Sidechannels and Mitigations - Andrew Cooper, Citrix
XPDDS19: Keeping Coherency on Arm: Reborn - Julien Grall, Arm ltd
XPDDS19: QEMU PV Backend 'qdevification'... What Does it Mean? - Paul Durrant...
XPDDS19: Status of PCI Emulation in Xen - Roger Pau Monné, Citrix Systems R&D
XPDDS19: [ARM] OP-TEE Mediator in Xen - Volodymyr Babchuk, EPAM Systems
XPDDS19: Bringing Xen to the Masses: The Story of Building a Community-driven...
XPDDS19: Will Robots Automate Your Job Away? Streamlining Xen Project Contrib...
XPDDS19: Client Virtualization Toolstack in Go - Nick Rosbrook & Brendan Kerr...
XPDDS19: Core Scheduling in Xen - Jürgen Groß, SUSE
Ad

Recently uploaded (20)

PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PPTX
Spectroscopy.pptx food analysis technology
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
A comparative study of natural language inference in Swahili using monolingua...
PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Empathic Computing: Creating Shared Understanding
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Spectroscopy.pptx food analysis technology
Unlocking AI with Model Context Protocol (MCP)
A comparative study of natural language inference in Swahili using monolingua...
cloud_computing_Infrastucture_as_cloud_p
Mobile App Security Testing_ A Comprehensive Guide.pdf
Heart disease approach using modified random forest and particle swarm optimi...
A comparative analysis of optical character recognition models for extracting...
Advanced methodologies resolving dimensionality complications for autism neur...
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Empathic Computing: Creating Shared Understanding
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
NewMind AI Weekly Chronicles - August'25-Week II
MIND Revenue Release Quarter 2 2025 Press Release
Programs and apps: productivity, graphics, security and other tools
SOPHOS-XG Firewall Administrator PPT.pptx

Practical Xen Testing At Intel

  • 1. Practical Xen Testing at Intel Nov. 2009 Haicheng Li <haicheng.li@intel.com> Jiajun Xu <jiajun.xu@intel.com> Xen Summit Asia 2009
  • 2. Legal Information • INFORMATION IN THIS DOCUMENT IS PROVIDED IN CONNECTION WITH INTEL PRODUCTS. NO LICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, TO ANY INTELLECTUAL PROPERTY RIGHTS IS GRANTED BY THIS DOCUMENT. EXCEPT AS PROVIDED IN INTEL'S TERMS AND CONDITIONS OF SALE FOR SUCH PRODUCTS, INTEL ASSUMES NO LIABILITY WHATSOEVER AND INTEL DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY, RELATING TO SALE AND/OR USE OF INTEL PRODUCTS INCLUDING LIABILITY OR WARRANTIES RELATING TO FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT. • Intel may make changes to specifications, product descriptions, and plans at any time, without notice. • All products, computer systems, dates, and figures specified are preliminary based on current expectations, and are subject to change without notice. • Performance tests and ratings are measured using specific computer systems and/or components and reflect the approximate performance of Intel products as measured by those tests. Any difference in system hardware or software design or configuration may affect actual performance. • Intel is a trademark of Intel Corporation in the U.S. and other countries. • *Other names and brands may be claimed as the property of others. • Copyright © 2009, Intel Corporation. All rights are protected. Software and Services Group 2 2
  • 3. Agenda • The Overview – how test helps Xen? • Test Infrastructure – the world under automation • Best Practices – practical test approaches • Some Proposals – to improve Xen quality Software and Services Group 3 3
  • 4. The Overview Software and Services Group 4 4
  • 5. Progressive Xen Testing VT-x SR-IOV Intel VT VT- i VT-d Dec. 2005 Oct. 2006 May. 2007 Jan. 2008 Aug. 2008 Apr. 2009 Xen-3.0.0 Xen-3.0.3 Xen-3.1.0 Xen-3.2.0 Xen-3.3.0 Xen-3.4.0 XEN • Hundreds of Xen patches Monthly !!! XEN Development • How can TEST help? • Test HVM x86/IA64 PV Guest Timers NUMA EPT Power Management RAS Coverage SMP VM Expose regression timely Live Migration TXT Real Mode Device Pass-Through SR-IOV • 3.0.x Release Ensure release quality 3.1.x Release 3.2.x Release 3.3.x Release 3.4.x Release Test Test Reports Test Reports Test Reports Test Reports Test Reports Deliverables Nightly Test Reports Weekly Test Reports Biweekly Test Reports Actively Bug Tracking Software and Services Group 5 5
  • 6. Progressive Xen Testing VT-x SR-IOV Intel VT VT- i VT-d Dec. 2005 Oct. 2006 May. 2007 Jan. 2008 Aug. 2008 Apr. 2009 Xen-3.0.0 Xen-3.0.3 Xen-3.1.0 Xen-3.2.0 Xen-3.3.0 Xen-3.4.0 XEN XEN Development Test HVM x86/IA64 PV Guest Timers NUMA EPT Power Management RAS Coverage SMP VM Live Migration TXT Real Mode Device Pass-Through SR-IOV 3.0.x Release 3.1.x Release ~300 major Release reported, 3.2.x Release 3.3.x bugs 3.4.x Release Test Deliverables Test Reports Test Reports 20% of Xen Bugzilla Test Reports Test Reports Test Reports Nightly Test Reports Weekly Test Reports Biweekly Test Reports Actively Bug Tracking Software and Services Group 6 6
  • 7. Test Infrastructure Software and Services Group 7 7
  • 8. Solid Test Infrastructure • Test Automation in Everywhere – auto daily testing – auto release resting – auto patch testing • Test Infrastructure is The Basis • Extendable Test Framework • Auto Build System • Test Result Center • Patch Test System Software and Services Group 8 8
  • 9. Extendable Test Framework Manual Testing Regular Testing Auto Build *XVS Result submitter to Result Center Common lib *XVS: eXtendable Validation System Management Module VT-d/ Controller Report Generator VT-d | -- VT-d lib | -- test1 | -- test2 Call with Scenario file SR-IOV Test Suite Pool … Harness SR-IOV/ Power | -- IOV lib Test Harness | -- test1 | -- test2 RAS Software and Services Group 9 9
  • 10. Test Result Center Find Defects Out Timely! Software and Services Group 10 10
  • 11. Patch Test System Recipe Submit UI Machine Status UI Result UI DB Tool Web UI Receive Core Management Runtime DB Recipe Test Schedule Test Box 1 Local Control Scheduler Machine Test Box 2 Recipe … Test Info Test Machine R-Queue Pool Test Info XVS Users Test Box N Test Resources OSD Results Results Processing Machines Software and Services Group 11 11
  • 12. Patch Test System Ensure Patch Quality Before Submitting Out! Software and Services Group 12 12
  • 13. Best Practices Software and Services Group 13 13
  • 14. Power Management Testing • Challenge – How to achieve integrated Power Management testing? • Test Approach – Automated functionality testing. • Interface : xenpm, hypercall, sysfs interface • Coverage : idle, runtime, Dom0/HVM S3 – Performance measurement. • Scenario : idle, runtime, benchmarks • Platform : laptop & server • OS : Linux, Windows • Publish : web site Software and Services Group 14 14
  • 15. Power Management Testing • Challenge – How to achieve integrated power testing? • Test Approach – Automated functionality testing. • Interface : xenpm, hypercall, sys i/f • Coverage : idle, runtime, Dom0/HVM S3 – Performance measurement. • Scenario : idle, runtime, benchmarks • Platform : laptop & server • OS : Linux, Windows • Publish : web site Software and Services Group 15 15
  • 16. RAS Testing • Challenge – How to achieve good test coverage? • Test Approach – Add test stub to Xen to dump page types. – Add test stub to Xen to translate address from guest to host. – Use ACPI4.0/APEI to trigger CPU/Mem *MCE to specific pages. • To Do – How to stress? • Option: add more software test interface to *MCE handlers. – CPU Migration – MEM hot-plug *MCE: Machine Check Exception Software and Services Group 16 16
  • 17. RAS Testing • Challenge – How to achieve good test coverage? • Test Approach – Add test stub to Xen to dump page types. – Add test stub to Xen to What MCE test i/f guest to host. translate address from Linux provides? – Use ACPI4.0/APEI to trigger CPU/Mem to trigger fake MCE • MCE injector *MCE to specific pages. • madvise syscall to poison page • To Do • HWPosion injector to poison page – How to stress? •…… • Option: add more software test interface to *MCE handlers. – CPU Migration – MEM hot-plug *MCE: Machine Check Error Software and Services Group 17 17
  • 18. VT-d/SR-IOV Testing • Challenge – Hardware variety & complexity : platforms + devices • Test Approach – Select typical test configurations. • Platform : laptop -> desktop -> server • Device : NIC, USB, SATA • PCI type : PCIE MSI, PCIE INTx, PCI INTx • OS : Linux, Windows – Use NIC to achieve test automation. • Methods : ping, scp (file copy), ssh • Coverage : static assignment + VT-d hotplug • Multiple-devices assignment. Software and Services Group 18 18
  • 19. Some Proposals Software and Services Group 19 19
  • 20. Improve Xen Quality • Source Control – Synchronize source control for Ioemu, Dom0 and Xen. • E.g. VT-d is usually broken by ioemu check-in • Bug Tracking – Well track bug state in Xen Bugzilla • Current Xen BZ full of obsolete bug data • ~500 bugs , 30% Xen Bugzilla, are NEW! • Xen Testability – More built-in test features for Xen? • It’s a trend for Linux: memleak checker, fault injector, ... Software and Services Group 20 20
  • 21. Questions? Software and Services Group 21 21
  • 22. Backup Software and Services Group 22 22
  • 23. Regular Testing To keep Xen from regressions Build Check Booting Tests Basic Functional Tests C/S Pull Auto Build Auto Install Regression Testing Bug Verification Daily Build *BAT Testing Daily *BAT Test Cycle *BAT: Build Acceptance Test Full Scope Functional Tests Functionality Testing Performance Testing Stress Testing Others System Testing Monthly System Test Cycle Software and Services Group 23 23
  • 24. Release Testing To make qualified Xen release Build Check Booting Tests Basic Functional Tests C/S Pull Auto Build Auto Install Regression Testing Bug Verification Release Build *BAT Testing Release *BAT Test Cycle *BAT: Build Acceptance Test Full Scope Functional Tests Functionality Testing Performance Testing Stress Testing Others System Testing Release System Test Cycle Software and Services Group 24 24
  • 25. Patch Testing To ensure patch quality for Xen Build Check Booting Tests Basic Functional Tests Auto Build Auto Install Regression Testing Unit Testing Patch Testing Patch Test Cycle Software and Services Group 25 25