mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Remove the CPU feature handling, unimplementable as it stands.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
0c787417a5
commit
ff9fb017b3
9 files changed
-1346
No files matched your search
@@ -652,15 +652,11 @@ class XendAPI(object):
|
||||
|
||||
host_cpu_attr_ro = ['host',
|
||||
'number',
|
||||
'features',
|
||||
'utilisation']
|
||||
|
||||
# attributes
|
||||
def host_cpu_get_host(self, session, host_cpu_ref):
|
||||
return xen_api_success(XendNode.instance().uuid)
|
||||
def host_cpu_get_features(self, session, host_cpu_ref):
|
||||
features = XendNode.instance().get_host_cpu_features(host_cpu_ref)
|
||||
return xen_api_success(features)
|
||||
def host_cpu_get_utilisation(self, session, host_cpu_ref):
|
||||
util = XendNode.instance().get_host_cpu_load(host_cpu_ref)
|
||||
return xen_api_success(util)
|
||||
@@ -676,7 +672,6 @@ class XendAPI(object):
|
||||
record = {'uuid': host_cpu_ref,
|
||||
'host': node.uuid,
|
||||
'number': node.get_host_cpu_number(host_cpu_ref),
|
||||
'features': node.get_host_cpu_features(host_cpu_ref),
|
||||
'utilisation': node.get_host_cpu_load(host_cpu_ref)}
|
||||
return xen_api_success(record)
|
||||
|
||||
@@ -860,8 +855,6 @@ class XendAPI(object):
|
||||
'memory_static_min',
|
||||
'VCPUs_number',
|
||||
'VCPUs_utilisation',
|
||||
'VCPUs_features_required',
|
||||
'VCPUs_can_use',
|
||||
'consoles',
|
||||
'VIFs',
|
||||
'VBDs',
|
||||
@@ -879,8 +872,6 @@ class XendAPI(object):
|
||||
'memory_dynamic_min',
|
||||
'VCPUs_policy',
|
||||
'VCPUs_params',
|
||||
'VCPUs_features_force_on',
|
||||
'VCPUs_features_force_off',
|
||||
'actions_after_shutdown',
|
||||
'actions_after_reboot',
|
||||
'actions_after_suspend',
|
||||
@@ -927,10 +918,6 @@ class XendAPI(object):
|
||||
'memory_static_min',
|
||||
'VCPUs_policy',
|
||||
'VCPUs_params',
|
||||
'VCPUs_features_required',
|
||||
'VCPUs_features_can_use',
|
||||
'VCPUs_features_force_on',
|
||||
'VCPUs_features_force_off',
|
||||
'actions_after_shutdown',
|
||||
'actions_after_reboot',
|
||||
'actions_after_suspend',
|
||||
@@ -990,14 +977,6 @@ class XendAPI(object):
|
||||
dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
|
||||
return xen_api_success(dom.get_vcpus_util())
|
||||
|
||||
def VM_get_VCPUs_features_required(self, session, vm_ref):
|
||||
dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
|
||||
return xen_api_todo() # unsupported by xc
|
||||
|
||||
def VM_get_VCPUs_can_use(self, session, vm_ref):
|
||||
dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
|
||||
return xen_api_todo() # unsupported by xc
|
||||
|
||||
def VM_get_VIFs(self, session, vm_ref):
|
||||
dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
|
||||
return xen_api_success(dom.get_vifs())
|
||||
@@ -1055,14 +1034,6 @@ class XendAPI(object):
|
||||
dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
|
||||
return xen_api_todo() # need access to scheduler
|
||||
|
||||
def VM_get_VCPUs_features_force_on(self, session, vm_ref):
|
||||
dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
|
||||
return xen_api_todo()
|
||||
|
||||
def VM_get_VCPUs_features_force_off(self, session, vm_ref):
|
||||
dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
|
||||
return xen_api_todo()
|
||||
|
||||
def VM_get_actions_after_shutdown(self, session, vm_ref):
|
||||
dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
|
||||
return xen_api_success(dom.get_on_shutdown())
|
||||
@@ -1157,14 +1128,6 @@ class XendAPI(object):
|
||||
dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
|
||||
return xen_api_todo()
|
||||
|
||||
def VM_set_VCPUs_features_force_on(self, session, vm_ref, features):
|
||||
dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
|
||||
return xen_api_todo()
|
||||
|
||||
def VM_set_VCPUs_features_force_off(self, session, vm_ref, features):
|
||||
dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
|
||||
return xen_api_todo()
|
||||
|
||||
def VM_set_actions_after_shutdown(self, session, vm_ref, action):
|
||||
if action not in XEN_API_ON_NORMAL_EXIST:
|
||||
return xen_api_error(['VM_ON_NORMAL_EXIT_INVALID', vm_ref])
|
||||
@@ -1280,10 +1243,6 @@ class XendAPI(object):
|
||||
'VCPUs_params': xeninfo.get_vcpus_params(),
|
||||
'VCPUs_number': xeninfo.getVCpuCount(),
|
||||
'VCPUs_utilisation': xeninfo.get_vcpus_util(),
|
||||
'VCPUs_features_required': [],
|
||||
'VCPUs_features_can_use': [],
|
||||
'VCPUs_features_force_on': [],
|
||||
'VCPUs_features_force_off': [],
|
||||
'actions_after_shutdown': xeninfo.get_on_shutdown(),
|
||||
'actions_after_reboot': xeninfo.get_on_reboot(),
|
||||
'actions_after_suspend': xeninfo.get_on_suspend(),
|
||||
|
||||