Skip to content

Improve support for x86 hardware - #23

Open
dreamliner787-9 wants to merge 3 commits into
mainfrom
x86
Open

Improve support for x86 hardware#23
dreamliner787-9 wants to merge 3 commits into
mainfrom
x86

Conversation

@dreamliner787-9

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Bill Nguyen <bill.nguyen@unsw.edu.au>
Signed-off-by: Bill Nguyen <bill.nguyen@unsw.edu.au>
Signed-off-by: Bill Nguyen <bill.nguyen@unsw.edu.au>
await self._acquire_lock()

self.process = await asyncio.create_subprocess_exec(
# fmt: off

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you remove the fmt: off and change all the formatting here?

Comment thread ts_ci/boards.py
}


def board_is_x86(board: str) -> bool:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hrm. Not sure if I like this. I'd rather make MACHINE_QUEUE_BOARDS be called PLATFORMS and contain this information:

"skylake": {
  "arch": Arch.x86_64.with_features(vtx),
  "mq_board_names": ["skylake", "skylake1", "skylake2"],
},
"qemu_virt_x86_64": {
  ...
}

Or something like that.


cmd_args.extend(
[
"-f",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should look like

cmd_args.extend([
  "-f", self.image_file.resolve()",
  "-s", self.chosen_board
])

But also, you can just do -s before the files and then you can always add it, and then it should really be more like then:

match board.arch:
   case arch.x86:
       cmd_args.extend(["-f", ..., "-f", ...")
   case arch.aarch64 | arch.riscv64:
       cmd_args.extend(["-f", ..."])

But also, in general, I don't want to assume that the layout of the directory.
i.e. self.image_file.parent.resolve() assumes that the layout is a specific way. It won't work if you pass --loader-image as a cmd line argument or if you build is slightly different.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tldr; this needs more thought.

I also don't know how in CI we handle things like "we want to run NVMe on these x86 boards" and also "not-NVMe on these" etc

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternatively, we could make machine queue just take a list of -f arguments instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants