From: Sheng Yang Date: Mon, 24 Nov 2008 06:32:56 +0000 (+0800) Subject: KVM: Enable MSI for device assignment X-Git-Tag: v2.6.29-rc1~539^2~54 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b9cc7fd469869bed38831c5adac3f59dc25eaf5;p=pandora-kernel.git KVM: Enable MSI for device assignment We enable guest MSI and host MSI support in this patch. The userspace want to enable MSI should set KVM_DEV_IRQ_ASSIGN_ENABLE_MSI in the assigned_irq's flag. Function would return -ENOTTY if can't enable MSI, userspace shouldn't set MSI Enable bit when KVM_ASSIGN_IRQ return -ENOTTY with KVM_DEV_IRQ_ASSIGN_ENABLE_MSI. Userspace can tell the support of MSI device from #ifdef KVM_CAP_DEVICE_MSI. Signed-off-by: Sheng Yang Signed-off-by: Avi Kivity --- Reading git-diff-tree failed