Skip to content

Commit 3a177a3

Browse files
authored
Merge branch 'main' into audit/ignore_paste_warning
2 parents 894e45e + 91cea5e commit 3a177a3

File tree

3 files changed

+9
-15
lines changed

3 files changed

+9
-15
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ and this project adheres to
2121

2222
### Fixed
2323

24+
- #\[[5074](https://github.com/firecracker-microvm/firecracker/pull/5074)\] Fix
25+
the `SendCtrlAltDel` command not working for ACPI-enabled guest kernels, by
26+
dropping the i8042.nopnp argument from the default kernel command line
27+
Firecracker constructs.
28+
2429
## [1.11.0]
2530

2631
### Added

src/vmm/src/vmm_config/boot_source.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@ use serde::{Deserialize, Serialize};
1414
/// - `8250.nr_uarts=0` disable 8250 serial interface;
1515
/// - `i8042.noaux` do not probe the i8042 controller for an attached mouse (save boot time);
1616
/// - `i8042.nomux` do not probe i8042 for a multiplexing controller (save boot time);
17-
/// - `i8042.nopnp` do not use ACPIPnP to discover KBD/AUX controllers (save boot time);
1817
/// - `i8042.dumbkbd` do not attempt to control kbd state via the i8042 (save boot time).
19-
pub const DEFAULT_KERNEL_CMDLINE: &str = "reboot=k panic=1 pci=off nomodule 8250.nr_uarts=0 \
20-
i8042.noaux i8042.nomux i8042.nopnp i8042.dumbkbd";
18+
pub const DEFAULT_KERNEL_CMDLINE: &str =
19+
"reboot=k panic=1 pci=off nomodule 8250.nr_uarts=0 i8042.noaux i8042.nomux i8042.dumbkbd";
2120

2221
/// Strongly typed data structure used to configure the boot source of the
2322
/// microvm.

tests/integration_tests/functional/test_api.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -767,24 +767,14 @@ def test_send_ctrl_alt_del(uvm_plain_any):
767767
test_microvm.spawn()
768768

769769
test_microvm.basic_config()
770+
test_microvm.add_net_iface()
770771
test_microvm.start()
771772

772-
# Wait around for the guest to boot up and initialize the user space
773-
time.sleep(2)
774-
775773
test_microvm.api.actions.put(action_type="SendCtrlAltDel")
776774

777-
firecracker_pid = test_microvm.firecracker_pid
778-
779775
# If everything goes as expected, the guest OS will issue a reboot,
780776
# causing Firecracker to exit.
781-
# waitpid should block until the Firecracker process has exited. If
782-
# it has already exited by the time we call waitpid, WNOHANG causes
783-
# waitpid to raise a ChildProcessError exception.
784-
try:
785-
os.waitpid(firecracker_pid, os.WNOHANG)
786-
except ChildProcessError:
787-
pass
777+
test_microvm.mark_killed()
788778

789779

790780
def _drive_patch(test_microvm, io_engine):

0 commit comments

Comments
 (0)