Skip to content

Commit 4f6eadd

Browse files
committed
uefi: Change the test memory device to a temporary file
1 parent 4a26a9a commit 4f6eadd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xtask/src/qemu.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,9 +484,9 @@ pub fn run_qemu(arch: UefiArch, opt: &QemuOpt) -> Result<()> {
484484
// Sixth shared memory device used for testing Pci Root Bridge I/O's Copy function.
485485
// This is to provide a PCI device with large enough memory.
486486
cmd.arg("-device");
487-
cmd.arg("ivshmem-plain,memdev=hostmem,id=hostmem");
487+
cmd.arg("ivshmem-plain,memdev=tempmem,id=tempmem");
488488
cmd.arg("-object");
489-
cmd.arg("memory-backend-file,size=1M,share,mem-path=/dev/shm/ivshmem,id=hostmem");
489+
cmd.arg("memory-backend-file,size=1M,mem-path=copy-test.ram,id=tempmem");
490490

491491
let qemu_monitor_pipe = Pipe::new(tmp_dir, "qemu-monitor")?;
492492
let serial_pipe = Pipe::new(tmp_dir, "serial")?;

0 commit comments

Comments
 (0)