x86/sev-es: Handle RDTSC(P) Events
[linux-2.6-microblaze.git] / arch / x86 / boot / compressed / sev-es.c
index b1790f4..5f15e58 100644 (file)
@@ -181,6 +181,10 @@ void do_boot_stage2_vc(struct pt_regs *regs, unsigned long exit_code)
                goto finish;
 
        switch (exit_code) {
+       case SVM_EXIT_RDTSC:
+       case SVM_EXIT_RDTSCP:
+               result = vc_handle_rdtsc(boot_ghcb, &ctxt, exit_code);
+               break;
        case SVM_EXIT_IOIO:
                result = vc_handle_ioio(boot_ghcb, &ctxt);
                break;