fix: re-add ignore msrs and trim pidfile

This commit is contained in:
Oskar Manhart 2023-10-10 14:31:18 +02:00
parent 0e5276c744
commit 9e8d43c6b8

View File

@ -31,6 +31,7 @@ pub fn start_vm(config: Config) {
Command::new("quickemu")
.current_dir(data_dir)
.args([
"--ignore-msrs-always",
"--vm",
&format!("{}.conf", config.vm.name),
"--display",
@ -53,9 +54,11 @@ pub fn kill_vm(config: Config) {
let data_dir = get_data_dir();
let pid = unwrap_or_exit!(
fs::read_to_string(
data_dir.join(format!("{}/{}.pid", config.vm.short_name, config.vm.name)),
),
fs::read_to_string(data_dir.join(format!(
"{}/{}.pid",
config.vm.short_name,
config.vm.name.trim()
))),
"Failed to read PID file, is the VM running and the config correct?"
);