Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0152527b authored by Joerg Roedel's avatar Joerg Roedel Committed by Avi Kivity
Browse files

KVM: SVM: intercept SMI to handle it at host level



This patch changes the SVM code to intercept SMIs and handle it
outside the guest.

Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
parent cd205625
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -486,6 +486,7 @@ static void init_vmcb(struct vmcb *vmcb)


	control->intercept = 	(1ULL << INTERCEPT_INTR) |
	control->intercept = 	(1ULL << INTERCEPT_INTR) |
				(1ULL << INTERCEPT_NMI) |
				(1ULL << INTERCEPT_NMI) |
				(1ULL << INTERCEPT_SMI) |
		/*
		/*
		 * selective cr0 intercept bug?
		 * selective cr0 intercept bug?
		 *    	0:   0f 22 d8                mov    %eax,%cr3
		 *    	0:   0f 22 d8                mov    %eax,%cr3