switch ( cmd )
{
- /*
- * Only being permitted for management of other domains.
- * Further restrictions are enforced in do_physdev_op.
- */
case PHYSDEVOP_map_pirq:
case PHYSDEVOP_unmap_pirq:
- break;
-
case PHYSDEVOP_eoi:
case PHYSDEVOP_irq_status_query:
case PHYSDEVOP_get_free_pirq:
if ( !d )
break;
- /* Only mapping when the subject domain has a notion of PIRQ */
- if ( !is_hvm_domain(d) || has_pirq(d) )
- ret = physdev_map_pirq(d, map.type, &map.index, &map.pirq, &msi);
- else
- ret = -EOPNOTSUPP;
+ ret = physdev_map_pirq(d, map.type, &map.index, &map.pirq, &msi);
rcu_unlock_domain(d);
if ( !d )
break;
- /* Only unmapping when the subject domain has a notion of PIRQ */
- if ( !is_hvm_domain(d) || has_pirq(d) )
- ret = physdev_unmap_pirq(d, unmap.pirq);
- else
- ret = -EOPNOTSUPP;
+ ret = physdev_unmap_pirq(d, unmap.pirq);
rcu_unlock_domain(d);