Skip to content

Commit

Permalink
test: Provide host's randomness via virtio
Browse files Browse the repository at this point in the history
  • Loading branch information
danimo authored and haraldh committed Nov 13, 2019
1 parent 9a75200 commit c226bfd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/run-qemu
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ $(lsmod | grep -q '^kqemu ') && BIN=/usr/bin/qemu && ARGS="-kernel-kqemu -cpu ho
exit 1
}

# Provide rng device sourcing the hosts /dev/urandom
ARGS="$ARGS -device virtio-rng-pci"

KVERSION=${KVERSION-$(uname -r)}

VMLINUZ="/lib/modules/${KVERSION}/vmlinuz"
Expand Down

0 comments on commit c226bfd

Please sign in to comment.