Skip to content

Commit

Permalink
Merge #4
Browse files Browse the repository at this point in the history
4: QEMU: Enable xsaveopt cpu feature r=stlankes a=mkroening

See hermit-os/kernel#278.

bors r+

Co-authored-by: Martin Kröning <mkroening@posteo.net>
  • Loading branch information
bors[bot] and mkroening authored Oct 29, 2021
2 parents 58b6230 + 02ff6ae commit bab0ecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/start.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub fn start_container(id: Option<&str>) {
let buffer = fs::read(rootfs.clone() + "/" + command).unwrap();
let elf = elf::Elf::parse(&buffer).unwrap();
let start = if elf.header.e_ident[EI_OSABI] == 0xFF {
format!("qemu-system-x86_64 -display none -smp 1 -m 64M -serial stdio -kernel /hermit/rusty-loader -initrd {} -cpu qemu64,apic,fsgsbase,rdtscp,xsave,fxsr,rdrand", command)
format!("qemu-system-x86_64 -display none -smp 1 -m 64M -serial stdio -kernel /hermit/rusty-loader -initrd {} -cpu qemu64,apic,fsgsbase,rdtscp,xsave,xsaveopt,fxsr,rdrand", command)
} else {
command.to_string()
};
Expand Down

0 comments on commit bab0ecb

Please sign in to comment.