KVM: VMX: Add printk_ratelimit in vmx_intr_assist
Add printk_ratelimit check in front of printk. This prevents spamming of the message during 32-bit ubuntu 6.06server install. Previously, it would hang during the partition formatting stage. Signed-off-by: Ryan Harper <ryanh@us.ibm.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
This commit is contained in:
@@ -2263,6 +2263,7 @@ static void vmx_intr_assist(struct kvm_vcpu *vcpu)
|
|||||||
if (intr_info_field & INTR_INFO_VALID_MASK) {
|
if (intr_info_field & INTR_INFO_VALID_MASK) {
|
||||||
if (idtv_info_field & INTR_INFO_VALID_MASK) {
|
if (idtv_info_field & INTR_INFO_VALID_MASK) {
|
||||||
/* TODO: fault when IDT_Vectoring */
|
/* TODO: fault when IDT_Vectoring */
|
||||||
|
if (printk_ratelimit())
|
||||||
printk(KERN_ERR "Fault when IDT_Vectoring\n");
|
printk(KERN_ERR "Fault when IDT_Vectoring\n");
|
||||||
}
|
}
|
||||||
if (has_ext_irq)
|
if (has_ext_irq)
|
||||||
|
Reference in New Issue
Block a user