1. 24 4月, 2018 7 次提交
  2. 23 4月, 2018 7 次提交
  3. 21 4月, 2018 1 次提交
    • J
      tests: Xen: use qemu-system-i386 for emulator · cec1022e
      Jim Fehlig 提交于
      Many of the old xm and sexpr test files used qemu-dm as the emulator.
      Modern Xen systems no longer use the old, forked qemu-dm, instead
      preferring the distro provided qemu or an "upstream" qemu that is
      built when the Xen tools are built. This qemu is typically installed
      in /usr/lib/xen/bin/qemu-system-i386.
      
      The libxl test files already use /usr/lib/xen/bin/qemu-system-i386.
      For consistency, change the old test files to use the same emulator
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      cec1022e
  4. 20 4月, 2018 23 次提交
  5. 19 4月, 2018 2 次提交
    • A
      qemu: Figure out nodeset bitmap size correctly · 93114485
      Andrea Bolognani 提交于
      The current private XML parsing code relies on the assumption
      that NUMA node IDs start from 0 and are densely allocated,
      neither of which is necessarily the case.
      
      Change it so that the bitmap size is dynamically calculated by
      looking at NUMA node IDs instead, which ensures all nodes will
      be able to fit and thus the bitmap will be parsed successfully.
      
      Update one of the test cases so that it would fail with the
      previous approach, but passes with the new one.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1490158Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      93114485
    • A
      tests: Create full host NUMA topology in more cases · 4fe4ffdb
      Andrea Bolognani 提交于
      vircapstest has code to add a full host NUMA topology, that
      is, one that includes all information about nodes and CPUs
      including IDs; testQemuCapsInit(), which is used to create a
      mock virCapsPtr for QEMU tests, however, just fakes it by
      setting nnumaCell_max to some number.
      
      While the latter approach has served us well so far, we're
      going to need all the information to be filled in soon. In
      order to do that, we can just move the existing code from
      vircapstest to testutils and, with some renaming and
      trivial tweaking, use it as-is.
      
      Interestingly, the NUMA topology generated by the function
      is rigged up so that the NUMA nodes aren't (necessarily)
      numbered starting from 0, which is a nice way to spot
      mistaken assumptions in our codebase.
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      4fe4ffdb