ia64/xen-unstable

changeset 13040:5c8522bda629

Remove a number of unused configuration dictionaries -- these have all
moved into XendConfig now.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Thu Dec 14 17:37:29 2006 +0000 (2006-12-14)
parents 85c1e2383e98
children da0849b74170
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Thu Dec 14 15:32:44 2006 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Thu Dec 14 17:37:29 2006 +0000
     1.3 @@ -59,65 +59,6 @@ log = logging.getLogger("xend.XendDomain
     1.4  #log.setLevel(logging.TRACE)
     1.5  
     1.6  
     1.7 -def bool0(v):
     1.8 -    return v != "0" and bool(v)
     1.9 -
    1.10 -
    1.11 -##
    1.12 -# All parameters of VMs that may be configured on-the-fly, or at start-up.
    1.13 -# 
    1.14 -VM_CONFIG_PARAMS = [
    1.15 -    ('name',        str),
    1.16 -    ('on_poweroff', str),
    1.17 -    ('on_reboot',   str),
    1.18 -    ('on_crash',    str),
    1.19 -    ]
    1.20 -
    1.21 -
    1.22 -##
    1.23 -# Configuration entries that we expect to round-trip -- be read from the
    1.24 -# config file or xc, written to save-files (i.e. through sxpr), and reused as
    1.25 -# config on restart or restore, all without munging.  Some configuration
    1.26 -# entries are munged for backwards compatibility reasons, or because they
    1.27 -# don't come out of xc in the same form as they are specified in the config
    1.28 -# file, so those are handled separately.
    1.29 -ROUNDTRIPPING_CONFIG_ENTRIES = [
    1.30 -    ('uuid',            str),
    1.31 -    ('vcpus',           int),
    1.32 -    ('vcpu_avail',      int),
    1.33 -    ('cpu_cap',         int),
    1.34 -    ('cpu_weight',      int),
    1.35 -    ('memory',          int),
    1.36 -    ('shadow_memory',   int),
    1.37 -    ('maxmem',          int),
    1.38 -    ('bootloader',      str),
    1.39 -    ('bootloader_args', str),
    1.40 -    ('features',        str),
    1.41 -    ('localtime',       bool0),
    1.42 -    ]
    1.43 -
    1.44 -ROUNDTRIPPING_CONFIG_ENTRIES += VM_CONFIG_PARAMS
    1.45 -
    1.46 -
    1.47 -##
    1.48 -# All entries written to the store.  This is VM_CONFIG_PARAMS, plus those
    1.49 -# entries written to the store that cannot be reconfigured on-the-fly.
    1.50 -#
    1.51 -VM_STORE_ENTRIES = [
    1.52 -    ('uuid',          str),
    1.53 -    ('vcpus',         int),
    1.54 -    ('vcpu_avail',    int),
    1.55 -    ('memory',        int),
    1.56 -    ('shadow_memory', int),
    1.57 -    ('maxmem',        int),
    1.58 -    ('start_time',    float),
    1.59 -    ('on_xend_start', str),
    1.60 -    ('on_xend_stop', str),
    1.61 -    ]
    1.62 -
    1.63 -VM_STORE_ENTRIES += VM_CONFIG_PARAMS
    1.64 -
    1.65 -
    1.66  #
    1.67  # There are a number of CPU-related fields:
    1.68  #