diff options
| author | Daniil Baturin <daniil@vyos.io> | 2026-04-16 14:46:46 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-16 14:46:46 +0100 |
| commit | 13ed10dc78c7008dc10cbc237f1e18909b5ef0e6 (patch) | |
| tree | deb4599243dbd5bebb4e00449e7a463d619f38aa /scripts | |
| parent | aed9d15aad9eb08be3c4540b8ba376da20d2de03 (diff) | |
| parent | ecc03d09e73b805002830b1ffc1d33786c73583d (diff) | |
| download | vyos-build-13ed10dc78c7008dc10cbc237f1e18909b5ef0e6.tar.gz vyos-build-13ed10dc78c7008dc10cbc237f1e18909b5ef0e6.zip | |
Merge pull request #1160 from natali-rs1985/T8460
T8460: Add CPU isolation option to QEMU install checks for VPP-related tests
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/check-qemu-install | 4 |
1 files changed, 4 insertions, 0 deletions
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') |
