commit | 6762b7299aa115e11815decd1fd982d015f09615 | [log] [tgz] |
---|---|---|
author | Amit Shah <amit.shah@qumranet.com> | Wed Aug 13 16:22:37 2008 +0300 |
committer | Avi Kivity <avi@qumranet.com> | Wed Oct 15 10:15:20 2008 +0200 |
tree | 3973aab788f7f1d75377aa2aa78dc0014354c6f5 | |
parent | dc7404cea34ef997dfe89ca94d16358e9d29c8d8 [diff] |
KVM: Device assignment: Check for privileges before assigning irq Even though we don't share irqs at the moment, we should ensure regular user processes don't try to allocate system resources. We check for capability to access IO devices (CAP_SYS_RAWIO) before we request_irq on behalf of the guest. Noticed by Avi. Signed-off-by: Amit Shah <amit.shah@qumranet.com> Signed-off-by: Avi Kivity <avi@qumranet.com>