x86/boot/compressed/64: Setup a GHCB-based VC Exception handler
[linux-2.6-microblaze.git] / arch / x86 / boot / compressed / misc.c
index e478e40..267e7f9 100644 (file)
@@ -442,6 +442,13 @@ asmlinkage __visible void *extract_kernel(void *rmode, memptr heap,
        parse_elf(output);
        handle_relocations(output, output_len, virt_addr);
        debug_putstr("done.\nBooting the kernel.\n");
+
+       /*
+        * Flush GHCB from cache and map it encrypted again when running as
+        * SEV-ES guest.
+        */
+       sev_es_shutdown_ghcb();
+
        return output;
 }