Skip to content

exit_boot_services should consume the host BootServices #3

Closed
@HadrienG2

Description

@HadrienG2

Since the boot services are invalidated upon calling exit_boot_services, they should not remain available in the safe API. So I would propose having BootServices::exit_boot_services take a self value as a parameter, rather than a &self reference.

One point to be resolved, though, is what should happen if exit_boot_services fails, for example if the mmap_key is invalid. In this case, perhaps the BootServices value, or a subset thereof (to account for partial shutdown), should be returned in order to let the user try again?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions