Skip to content

Commit

Permalink
Revert "x86/setup.c: don't use XSM policy and ucode updates with slau…
Browse files Browse the repository at this point in the history
…nch"

This reverts commit 8a496be.

Proper handling of DRTM obsoletes these changes.
  • Loading branch information
SergiiDmytruk committed Dec 10, 2023
1 parent ece248f commit 3dc5991
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions xen/arch/x86/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -1029,13 +1029,6 @@ void __init noreturn __start_xen(unsigned long mbi_p)
mbi->mods_count);
}

if ( sl_status )
if ( mbi->mods_count > 2 )
{
mbi->mods_count = 2;
printk("Excessive multiboot modules for slaunch - limiting to 2\n");
}

bitmap_fill(module_map, mbi->mods_count);
__clear_bit(0, module_map); /* Dom0 kernel is always first */

Expand Down Expand Up @@ -1730,9 +1723,7 @@ void __init noreturn __start_xen(unsigned long mbi_p)
mmio_ro_ranges = rangeset_new(NULL, "r/o mmio ranges",
RANGESETF_prettyprint_hex);

/* TODO: XSM policies are not supported by slaunch yet. */
if ( sl_status == 0 )
xsm_multiboot_init(module_map, mbi);
xsm_multiboot_init(module_map, mbi);

/*
* IOMMU-related ACPI table parsing may require some of the system domains
Expand Down Expand Up @@ -1801,9 +1792,7 @@ void __init noreturn __start_xen(unsigned long mbi_p)

init_IRQ();

/* TODO: Microcode updates are not supported by slaunch yet. */
if ( sl_status == 0 )
microcode_grab_module(module_map, mbi);
microcode_grab_module(module_map, mbi);

timer_init();

Expand Down

0 comments on commit 3dc5991

Please sign in to comment.