Skip to content

Commit

Permalink
Merge pull request autotest#5590 from smitterl/virtiofs_unpr
Browse files Browse the repository at this point in the history
filesystem_device: test usage for unprivileged users
  • Loading branch information
chloerh authored May 31, 2024
2 parents a36464a + 79f6010 commit bbfa5d5
Show file tree
Hide file tree
Showing 4 changed files with 445 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
- virtual_devices.filesystem_device_unprivileged:
type = filesystem_device_unprivileged
# 10.0.0-6
func_supported_since_libvirt_ver = (10, 0, 0)
take_regular_screendumps = "no"
start_vm = no
vcpus_per_cell = 2
extra_hugepages = 128
test_user = test
test_passwd = test
pseries:
vcpus_per_cell = 5
aarch64:
extra_hugepages = 0
s390-virtio:
with_numa = no
variants plugmode:
- hotplug:
- coldplug:
variants:
- one_guest:
unpr_vms = unpr-vm
- two_guests:
unpr_vms = unpr-vm,unpr-vm2
variants memorybacking:
- with_hugepages:
s390-virtio:
kvm_module_parameters = hpage=1
- with_memfd:
- with_shm:
variants:
- one_fs:
fs_dicts = [{'accessmode': 'passthrough', 'source': {'dir': '/tmp/dir1'}, "target": {'dir': 'mount_tag1'}, 'binary': {'path':'/usr/libexec/virtiofsd', 'lock_posix':'off','flock':'off', 'sandbox_mode':'namespace', 'xattr':'on', 'cache_mode':'none'}, 'driver': {'type': 'virtiofs', 'queue':'1024'}}]
- two_fs:
fs_dicts = [{'accessmode': 'passthrough', 'source': {'dir': '/tmp/dir1'}, "target": {'dir': 'mount_tag1'}, 'binary': {'lock_posix':'off','flock':'off', 'sandbox_mode':'namespace'}, 'driver': {'type': 'virtiofs'}}, {'accessmode': 'passthrough', 'source': {'dir': '/tmp/dir2'}, "target": {'dir': 'mount_tag2'}, 'binary': {'lock_posix':'off','flock':'off', 'sandbox_mode':'namespace', 'xattr':'on', 'cache_mode':'none'}, 'driver': {'type': 'virtiofs'}}]
2 changes: 1 addition & 1 deletion libvirt/tests/src/virsh_cmd/host/virsh_sysinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def run(test, params, env):
dmidecode_version = get_processor_version()
if dmidecode_version:
# Get processor version from result
sysinfo_xml = libvirt_xml.SysinfoXML()
sysinfo_xml = libvirt_xml.VMSysinfoXML()
sysinfo_xml['xml'] = output
sysinfo_xml.xmltreefile.write()

Expand Down
Loading

0 comments on commit bbfa5d5

Please sign in to comment.