Skip to content
Snippets Groups Projects
  1. Sep 18, 2023
  2. Sep 12, 2023
  3. Sep 08, 2023
  4. Sep 07, 2023
  5. Aug 31, 2023
  6. Aug 22, 2023
  7. Aug 03, 2023
  8. Jul 26, 2023
  9. Jul 18, 2023
  10. Jul 10, 2023
    • Ani Sinha's avatar
      tests/qtest/hd-geo-test: fix incorrect pcie-root-port usage and simplify test · 579edbd4
      Ani Sinha authored
      
      The test attaches a SCSI controller to a non-zero slot and a pcie-to-pci bridge
      on slot 0 on the same pcie-root-port. Since a downstream device can be attached
      to a pcie-root-port only on slot 0, the above test configuration is not allowed.
      Additionally using pcie.0 as id for pcie-to-pci bridge is incorrect as that id
      is reserved only for the root bus.
      
      In the test scenario, there is no need to attach a pcie-root-port to the
      root complex. A SCSI controller can be attached to a pcie-to-pci bridge
      which can then be directly attached to the root bus (pcie.0).
      
      Fix the test and simplify it.
      
      CC: mst@redhat.com
      CC: imammedo@redhat.com
      CC: Michael Labiuk <michael.labiuk@virtuozzo.com>
      Acked-by: default avatarThomas Huth <thuth@redhat.com>
      Reviewed-by: default avatarIgor Mammedov <imammedo@redhat.com>
      Signed-off-by: default avatarAni Sinha <anisinha@redhat.com>
      Message-Id: <20230705115925.5339-5-anisinha@redhat.com>
      Reviewed-by: default avatarMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
      579edbd4
    • Ani Sinha's avatar
      tests/acpi/bios-tables-test: update acpi blob q35/DSDT.noacpihp · bac4711b
      Ani Sinha authored
      
      Some fixes were committed in bios-tables-test in the previous commit. Update
      the acpi blob and clear bios-tables-test-allowed-diff.h so that the test
      continues to pass with the changes in the bios-tables-test.
      
      Following is the asl diff between the old and the newly updated blob:
      
      @@ -1,30 +1,30 @@
       /*
        * Intel ACPI Component Architecture
        * AML/ASL+ Disassembler version 20210604 (64-bit version)
        * Copyright (c) 2000 - 2021 Intel Corporation
        *
        * Disassembling to symbolic ASL+ operators
        *
      - * Disassembly of tests/data/acpi/q35/DSDT.noacpihp, Wed Jun 21 18:26:52 2023
      + * Disassembly of /tmp/aml-O8SU61, Wed Jun 21 18:26:52 2023
        *
        * Original Table Header:
        *     Signature        "DSDT"
      - *     Length           0x00002038 (8248)
      + *     Length           0x00002031 (8241)
        *     Revision         0x01 **** 32-bit table (V1), no 64-bit math support
      - *     Checksum         0x4A
      + *     Checksum         0x89
        *     OEM ID           "BOCHS "
        *     OEM Table ID     "BXPC    "
        *     OEM Revision     0x00000001 (1)
        *     Compiler ID      "BXPC"
        *     Compiler Version 0x00000001 (1)
        */
       DefinitionBlock ("", "DSDT", 1, "BOCHS ", "BXPC    ", 0x00000001)
       {
           Scope (\)
           {
               OperationRegion (DBG, SystemIO, 0x0402, One)
               Field (DBG, ByteAcc, NoLock, Preserve)
               {
                   DBGB,   8
               }
      
      @@ -3148,48 +3148,48 @@
                       {
                           Name (_ADR, Zero)  // _ADR: Address
                           Method (_DSM, 4, Serialized)  // _DSM: Device-Specific Method
                           {
                               Local0 = Package (0x01)
                                   {
                                       0x01F5
                                   }
                               Return (EDSM (Arg0, Arg1, Arg2, Arg3, Local0))
                           }
                       }
                   }
      
                   Device (S40)
                   {
                       Name (_ADR, 0x00080000)  // _ADR: Address
      -                Device (S41)
      +                Device (S01)
                       {
      -                    Name (_ADR, 0x00080001)  // _ADR: Address
      +                    Name (_ADR, One)  // _ADR: Address
                           Method (_DSM, 4, Serialized)  // _DSM: Device-Specific Method
                           {
                               Local0 = Package (0x01)
                                   {
                                       0x0259
                                   }
                               Return (EDSM (Arg0, Arg1, Arg2, Arg3, Local0))
                           }
                       }
      
      -                Device (S48)
      +                Device (S02)
                       {
      -                    Name (_ADR, 0x00090000)  // _ADR: Address
      +                    Name (_ADR, 0x02)  // _ADR: Address
                           Device (S00)
                           {
                               Name (_ADR, Zero)  // _ADR: Address
                           }
                       }
                   }
      
                   Device (SF8)
                   {
                       Name (_ADR, 0x001F0000)  // _ADR: Address
                       OperationRegion (PIRQ, PCI_Config, 0x60, 0x0C)
                       Scope (\_SB)
                       {
                           Field (PCI0.SF8.PIRQ, ByteAcc, NoLock, Preserve)
                           {
                               PRQA,   8,
      
      Signed-off-by: default avatarAni Sinha <anisinha@redhat.com>
      Acked-by: default avatarIgor Mammedov <imammedo@redhat.com>
      Message-Id: <20230705115925.5339-4-anisinha@redhat.com>
      Reviewed-by: default avatarMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
      bac4711b
    • Ani Sinha's avatar
      tests/acpi/bios-tables-test: use the correct slot on the pcie-root-port · 7b0ba7b1
      Ani Sinha authored
      
      PCIE ports only have one slot, slot 0. Hence, non-zero slots are not available
      for PCIE devices on PCIE root ports. Fix test_acpi_q35_tcg_no_acpi_hotplug()
      so that the test does not use them.
      
      Signed-off-by: default avatarAni Sinha <anisinha@redhat.com>
      Reviewed-by: default avatarIgor Mammedov <imammedo@redhat.com>
      Message-Id: <20230705115925.5339-3-anisinha@redhat.com>
      Reviewed-by: default avatarMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
      7b0ba7b1
    • Ani Sinha's avatar
      tests/acpi: allow changes in DSDT.noacpihp table blob · 8d60105a
      Ani Sinha authored
      
      We are going to fix bio-tables-test in the next patch and hence need to
      make sure the acpi tests continue to pass.
      
      Signed-off-by: default avatarAni Sinha <anisinha@redhat.com>
      Acked-by: default avatarIgor Mammedov <imammedo@redhat.com>
      Message-Id: <20230705115925.5339-2-anisinha@redhat.com>
      Reviewed-by: default avatarMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
      8d60105a
    • Milan Zamazal's avatar
      tests/qtest: enable tests for virtio-scmi · b6f53ae0
      Milan Zamazal authored
      
      We don't have a virtio-scmi implementation in QEMU and only support a
      vhost-user backend.  This is very similar to virtio-gpio and we add the same
      set of tests, just passing some vhost-user messages over the control socket.
      
      Signed-off-by: default avatarMilan Zamazal <mzamazal@redhat.com>
      Acked-by: default avatarThomas Huth <thuth@redhat.com>
      Message-Id: <20230628100524.342666-4-mzamazal@redhat.com>
      Reviewed-by: default avatarMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
      b6f53ae0
    • Daniel P. Berrangé's avatar
      tests/qtest: massively speed up migration-test · e02f56e3
      Daniel P. Berrangé authored
      
      The migration test cases that actually exercise live migration want to
      ensure there is a minimum of two iterations of pre-copy, in order to
      exercise the dirty tracking code.
      
      Historically we've queried the migration status, looking for the
      'dirty-sync-count' value to increment to track iterations. This was
      not entirely reliable because often all the data would get transferred
      quickly enough that the migration would finish before we wanted it
      to. So we massively dropped the bandwidth and max downtime to
      guarantee non-convergance. This had the unfortunate side effect
      that every migration took at least 30 seconds to run (100 MB of
      dirty pages / 3 MB/sec).
      
      This optimization takes a different approach to ensuring that a
      mimimum of two iterations. Rather than waiting for dirty-sync-count
      to increment, directly look for an indication that the source VM
      has dirtied RAM that has already been transferred.
      
      On the source VM a magic marker is written just after the 3 MB
      offset. The destination VM is now montiored to detect when the
      magic marker is transferred. This gives a guarantee that the
      first 3 MB of memory have been transferred. Now the source VM
      memory is monitored at exactly the 3MB offset until we observe
      a flip in its value. This gives us a guaranteed that the guest
      workload has dirtied a byte that has already been transferred.
      
      Since we're looking at a place that is only 3 MB from the start
      of memory, with the 3 MB/sec bandwidth, this test should complete
      in 1 second, instead of 30 seconds.
      
      Once we've proved there is some dirty memory, migration can be
      set back to full speed for the remainder of the 1st iteration,
      and the entire of the second iteration at which point migration
      should be complete.
      
      On a test machine this further reduces the migration test time
      from 8 minutes to 1 minute 40.
      
      Signed-off-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
      Message-Id: <20230601161347.1803440-11-berrange@redhat.com>
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      e02f56e3
    • Thomas Huth's avatar
      tests/qtest/readconfig: Test the docs/config/q35-*.cfg files · bc55e2ea
      Thomas Huth authored
      
      Test that we can successfully parse the docs/config/q35-emulated.cfg,
      docs/config/q35-virtio-graphical.cfg and docs/config/q35-virtio-serial.cfg
      config files (the "...-serial.cfg" file is a subset of the graphical
      config file, so we skip that in quick mode).
      
      These config files use two hard-coded image names which we have to
      replace with unique temporary files to avoid race conditions in case
      the tests are run in parallel. So after creating the temporary image
      files, we also have to create a copy of the config file where we
      replaced the hard-coded image names.
      
      If KVM is not available, we also have to disable the "accel" lines.
      Once everything is in place, we can start QEMU with the modified
      config file and check that everything is available in QEMU.
      
      Message-Id: <20230704071655.75381-4-thuth@redhat.com>
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      bc55e2ea
    • Thomas Huth's avatar
      tests/qtest: Move mkimg() and have_qemu_img() from libqos to libqtest · 25919c40
      Thomas Huth authored
      
      These two functions can be useful for other qtests beside the
      qos-test, too, so move them to libqtest instead.
      
      Message-Id: <20230704071655.75381-3-thuth@redhat.com>
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      25919c40
    • Thomas Huth's avatar
      tests/qtest/readconfig-test: Allow testing for arbitrary memory sizes · 5a7d4dc9
      Thomas Huth authored
      
      Make test_x86_memdev_resp() more flexible by allowing arbitrary
      memory sizes as parameter here.
      
      Message-Id: <20230704071655.75381-2-thuth@redhat.com>
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      5a7d4dc9
    • Tommy Wu's avatar
      tests/qtest: sifive-e-aon-watchdog-test.c: Add QTest of watchdog of sifive_e · 2f849e9d
      Tommy Wu authored
      
      Add some simple tests of the watchdog timer in the always-on domain device
      of HiFive 1 rev b.
      
      Signed-off-by: default avatarTommy Wu <tommy.wu@sifive.com>
      Reviewed-by: default avatarFrank Chang <frank.chang@sifive.com>
      Acked-by: default avatarThomas Huth <thuth@redhat.com>
      Acked-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      Message-Id: <20230627141216.3962299-4-tommy.wu@sifive.com>
      Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      2f849e9d
  11. Jul 07, 2023
Loading