Skip to contentSkip to conversation

linux-2.6.18/x86: refuse to initialize the microcode driver in DomU

PATCH New Jan Beulich 1 participant 1 message Dec 7, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-2.6.18/x86: refuse to initialize the microcode driver in DomU

arch/i386/kernel/microcode-xen.c +3 -0
@@ -121,6 +121,9 @@ static int __init microcode_init (void)
 {
 	int error;
 
+	if (!is_initial_xendomain())
+		return -ENODEV;
+
 	error = misc_register(&microcode_dev);
 	if (error) {
 		printk(KERN_ERR