diff options
| author | Nataliia Solomko <natalirs1985@gmail.com> | 2026-04-14 17:00:34 +0300 |
|---|---|---|
| committer | Nataliia Solomko <natalirs1985@gmail.com> | 2026-04-14 17:41:14 +0300 |
| commit | ecc03d09e73b805002830b1ffc1d33786c73583d (patch) | |
| tree | deb4599243dbd5bebb4e00449e7a463d619f38aa | |
| parent | aed9d15aad9eb08be3c4540b8ba376da20d2de03 (diff) | |
| download | vyos-build-ecc03d09e73b805002830b1ffc1d33786c73583d.tar.gz vyos-build-ecc03d09e73b805002830b1ffc1d33786c73583d.zip | |
T8460: Add CPU isolation option to QEMU install checks for VPP-related tests
| -rw-r--r-- | Makefile | 6 | ||||
| -rwxr-xr-x | scripts/check-qemu-install | 4 |
2 files changed, 7 insertions, 3 deletions
@@ -28,7 +28,7 @@ test: checkiso .PHONY: test-no-interfaces .ONESHELL: test-no-interfaces: checkiso - scripts/check-qemu-install --debug --configd --smoketest --uefi --no-interfaces --cpu 4 --memory 8 --huge-page-size 2M --huge-page-count 1800 --iso $(ISO_PATH) $(filter-out $@,$(MAKECMDGOALS)) + scripts/check-qemu-install --debug --configd --smoketest --uefi --no-interfaces --cpu 4 --memory 8 --huge-page-size 2M --huge-page-count 1800 --isolate-cpus 2-3 --iso $(ISO_PATH) $(filter-out $@,$(MAKECMDGOALS)) .PHONY: test-no-interfaces-no-vpp .ONESHELL: @@ -43,7 +43,7 @@ test-interfaces: checkiso .PHONY: test-vpp .ONESHELL: test-vpp: checkiso - scripts/check-qemu-install --debug --configd --match="vpp" --smoketest --uefi --cpu 4 --memory 8 --huge-page-size 2M --huge-page-count 1800 --iso $(ISO_PATH) $(filter-out $@,$(MAKECMDGOALS)) + scripts/check-qemu-install --debug --configd --match="vpp" --smoketest --uefi --cpu 4 --memory 8 --huge-page-size 2M --huge-page-count 1800 --isolate-cpus 2-3 --iso $(ISO_PATH) $(filter-out $@,$(MAKECMDGOALS)) .PHONY: testc .ONESHELL: @@ -53,7 +53,7 @@ testc: checkiso .PHONY: testcvpp .ONESHELL: testcvpp: checkiso - scripts/check-qemu-install --debug --configd --match="vpp" --cpu 4 --memory 8 --huge-page-size 2M --huge-page-count 1800 --configtest --iso $(ISO_PATH) $(filter-out $@,$(MAKECMDGOALS)) + scripts/check-qemu-install --debug --configd --match="vpp" --cpu 4 --memory 8 --huge-page-size 2M --huge-page-count 1800 --isolate-cpus 2-3 --configtest --iso $(ISO_PATH) $(filter-out $@,$(MAKECMDGOALS)) .PHONY: testraid .ONESHELL: diff --git a/scripts/check-qemu-install b/scripts/check-qemu-install index ed5bc4e6..9a9b6042 100755 --- a/scripts/check-qemu-install +++ b/scripts/check-qemu-install @@ -136,6 +136,7 @@ parser.add_argument('--no-vpp', help='Execute testsuite without VPP tests', action='store_true', default=False) parser.add_argument('--huge-page-size', help='Huge page size (e.g., 2M, 1G)', type=str) parser.add_argument('--huge-page-count', help='Number of huge pages to allocate', type=int) +parser.add_argument('--isolate-cpus', help='CPU cores to isolate (e.g., 1,3-4', type=str) args = parser.parse_args() @@ -681,6 +682,9 @@ try: c.expect(cfg_mode_prompt) c.sendline(f'set system option kernel memory hugepage-size {args.huge_page_size} hugepage-count {args.huge_page_count}') c.expect(cfg_mode_prompt) + if args.isolate_cpus: + c.sendline(f'set system option kernel cpu isolate-cpus {args.isolate_cpus}') + c.expect(cfg_mode_prompt) c.sendline('set system option kernel disable-mitigations') c.expect(cfg_mode_prompt) c.sendline('commit') |
