[Libvirt-cim] [PATCH] Add KVM proc/mem check in _resource_dynamic()

Dan Smith danms at us.ibm.com
Thu Jun 5 19:26:34 UTC 2008


KR> +        if  (((dev->type == CIM_RES_TYPE_PROC) || 
KR> +            (dev->type == CIM_RES_TYPE_MEM)) && (STREQ(prefix, "KVM"))) {
KR> +                cu_statusf(_BROKER, &s,
KR> +                           CMPI_RC_ERR_FAILED,
KR> +                           "Running guest cannot modify resource type %" PRIu16,
KR> +                           dev->type);
KR> +                goto out;
KR> +        }

Hmm, this means we need to update the provider code when KVM gains
specific features like that.  Is there some way we can just ignore
failures to dynamically add/rem/mod resources, or perhaps ignore
ENOTSUPPORTED or something?

-- 
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms at us.ibm.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20080605/fde23d27/attachment.sig>


More information about the Libvirt-cim mailing list