xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Add xl domUs default configuration file
@ 2011-06-06 11:25 Fabio Fantoni
  2011-06-21 17:10 ` Ian Jackson
  0 siblings, 1 reply; 10+ messages in thread
From: Fabio Fantoni @ 2011-06-06 11:25 UTC (permalink / raw)
  To: xen-devel

This patch add xl domUs default configuration file, must be improved and 
implemented in the core xl.
About implementation on core i try but fail, about this configuration 
file i start from other xm, removed some unnecessary things or specific 
such as name and uuid missed in xl and add other, some description need 
to be improved.

# HG changeset patch
# User Fabio Fantoni
# Date 1307358064 -7200
# Node ID b94e5d172a99a89e2bf1570ded6e41051ef81052
# Parent  0c0884fd8b494932a4b707e339cbe1b881d09103
Add xl domUs default configuration file, must be improved and 
implemented in the core xl

Signed-off-by: Fabio Fantoni <fabio.fantoni@heliman.it>

diff -r 0c0884fd8b49 -r b94e5d172a99 tools/examples/Makefile
--- a/tools/examples/Makefile    Fri Jun 03 21:39:00 2011 +0100
+++ b/tools/examples/Makefile    Mon Jun 06 13:01:04 2011 +0200
@@ -22,6 +22,7 @@
  XEN_CONFIGS += xend-pci-quirks.sxp
  XEN_CONFIGS += xend-pci-permissive.sxp
  XEN_CONFIGS += xl.conf
+XEN_CONFIGS += xl-domu-default.conf
  XEN_CONFIGS += cpupool

  .PHONY: all
diff -r 0c0884fd8b49 -r b94e5d172a99 tools/examples/xl-domu-default.conf
--- /dev/null    Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/examples/xl-domu-default.conf    Mon Jun 06 13:01:04 2011 +0200
@@ -0,0 +1,243 @@
+#============================================================================
+# Xl configuration default for domU setting on 'xl create'.
+# This conf sets the defaults parameters used when a domain is created
+# using 'xl create' instead those in the core if not existing in the
+# domU config specific.
+#============================================================================
+
+#----------------------------------------------------------------------------
+# Kernel image file.
+# kernel = "/path/to/domU/kernel"
+
+# Ramdisk.
+# ramdisk = "/boot/initrd.gz"
+
+# The domain build function. HVM domain uses 'hvm'.
+# builder='hvm'
+
+# Initial memory allocation (in megabytes) for the new domain.
+#
+# WARNING: Creating a domain with insufficient memory may cause out of
+#          memory errors. The domain needs enough memory to boot kernel
+#          and modules. Allocating less than 32MBs is not recommended.
+# memory = 128
+
+# Shadow pagetable memory for the domain, in MB.
+# If not explicictly set, xend will pick an appropriate value.
+# Should be at least 2KB per MB of domain memory, plus a few MB per vcpu.
+# shadow_memory = 8
+
+#-----------------------------------------------------------------------------
+# The number of cpus guest platform has, default=1
+# vcpus=1
+
+# Enable/disable HVM guest PAE, default=1 (enabled)
+# pae=1
+
+# Enable/disable HVM guest ACPI, default=1 (enabled)
+# acpi=1
+
+# Enable/disable HVM APIC mode, default=1 (enabled)
+# Note that this option is ignored if vcpus > 1
+# apic=1
+
+# Enable/disable HVM guest ACPI, default=1 (enabled)
+# acpi=1
+
+# Enable/disable HVM guest nx, default=1
+# nx=1
+
+# Enable/disable HVM guest viridian, default=0
+# viridian=1
+
+# Enable/disable HVM guest hpet, default=1
+# hpet=1
+
+# Enable/disable HVM guest vpt_align, default=1
+# vpt_align=1
+
+# Enable/disable HVM guest nestedhvm, default=0
+# nestedhvm=1
+
+# HVM guest video ram in megabyte, default 8
+# videoram=8
+
+# HVM guest timer_mode, default=1
+# timer_mode=1
+
+#----------------------------------------------------------------------------
+# Network configuration
+# type=ioemu specify the NIC is an ioemu device not netfront
+# vif = [ 'type=ioemu, bridge=xenbr0' ]
+
+#----------------------------------------------------------------------------
+# Define the disk devices you want the domain to have access to, and
+# what you want them accessible as.
+# For example can be put here a default installation cd.
+# disk = [ 'tap2:aio:/var/images/min-el3-i386.img,hdc:cdrom,r' ]
+
+#----------------------------------------------------------------------------
+# Configure the behaviour when a domain exits.  There are three 'reasons'
+# for a domain to stop: poweroff, reboot, and crash.  For each of these you
+# may specify:
+#
+#   "destroy",        meaning that the domain is cleaned up as normal;
+#   "restart",        meaning that a new domain is started in place of 
the old
+#                     one;
+#   "preserve",       meaning that no clean-up is done until the domain is
+#                     manually destroyed (using xm destroy, for 
example); or
+#   "rename-restart", meaning that the old domain is not cleaned up, but is
+#                     renamed and a new domain started in its place.
+#
+# In the event a domain stops due to a crash, you have the additional 
options:
+#
+#   "coredump-destroy", meaning dump the crashed domain's core and then 
destroy;
+#   "coredump-restart', meaning dump the crashed domain's core and the 
restart.
+#
+# The default is
+#
+#   on_poweroff = 'destroy'
+#   on_reboot   = 'restart'
+#   on_crash    = 'restart'
+
+# on_poweroff = 'destroy'
+# on_reboot   = 'restart'
+# on_crash    = 'restart'
+# on_watchdog = 'destroy'
+
+#============================================================================
+# boot on floppy (a), hard disk (c), Network (n) or CD-ROM (d)
+# default: hard disk, cd-rom, floppy
+# boot="cd"
+
+#----------------------------------------------------------------------------
+# enable SDL library for graphics, default = 0
+# sdl=0
+
+#----------------------------------------------------------------------------
+# enable OpenGL for texture rendering inside the SDL window, default = 0
+# valid only if sdl is enabled.
+# opengl=0
+
+#----------------------------------------------------------------------------
+# enable VNC library for graphics, default = 1
+# vnc=1
+
+#----------------------------------------------------------------------------
+# address that should be listened on for the VNC server if vnc is set.
+# default is to use 'vnc-listen' setting from
+# auxbin.xen_configdir() + /xend-config.sxp
+# vnclisten="127.0.0.1"
+
+#----------------------------------------------------------------------------
+# set VNC display number, default = domid
+# vncdisplay=1
+
+#----------------------------------------------------------------------------
+# try to find an unused port for the VNC server, default = 1
+# vncunused=1
+
+#----------------------------------------------------------------------------
+# set password for domain's VNC console
+# default is depents on vncpasswd in xend-config.sxp
+# vncpasswd=''
+
+#----------------------------------------------------------------------------
+# no graphics, use serial port
+# nographic=0
+
+#----------------------------------------------------------------------------
+# enable stdvga, default = 0 (use cirrus logic device model)
+# stdvga=0
+
+#-----------------------------------------------------------------------------
+#   serial port re-direct to pty deivce, /dev/pts/n
+#   then xm console or minicom can connect
+# serial='pty'
+
+# For disable migrate
+# nomigrate=1
+
+#----------------------------------------------------------------------------
+#   tsc_mode : TSC mode (0=default, 1=native TSC, 2=never emulate, 
3=pvrdtscp)
+#   emulate TSC provides synced TSC for all vcpus, but lose perfomrance.
+#   native TSC leverages hardware's TSC(no perf loss), but vcpu's TSC 
may lose
+#    sync due to hardware's unreliable/unsynced TSC between CPUs.
+#   default intelligently uses native TSC on machines where it is safe, but
+#    switches to emulated if necessary after save/restore/migration
+#   pvrdtscp is for intelligent apps that use special Xen-only 
paravirtualized
+#    cpuid instructions to obtain offset/scaling/migration info and 
maximize
+#    performance within pools of machines that support the rdtscp 
instruction
+# tsc_mode=0
+
+#-----------------------------------------------------------------------------
+#   enable sound card support, [sb16|es1370|all|..,..], default none
+# soundhw='sb16'
+
+#-----------------------------------------------------------------------------
+#   Enable USB support (specific devices specified at runtime through the
+#            monitor window)
+# usb=1
+
+#   Enable USB mouse support (only enable one of the following, `mouse' for
+#                  PS/2 protocol relative mouse, `tablet' for
+#                  absolute mouse)
+# usbdevice='mouse'
+# usbdevice='tablet'
+
+#-----------------------------------------------------------------------------
+# Set keyboard layout, default is en-us keyboard.
+# keymap='en-us'
+
+#-----------------------------------------------------------------------------
+# Enable/disable xen platform PCI device, default=1 (enabled)
+# xen_platform_pci=1
+
+#-----------------------------------------------------------------------------
+#   Configure passthrough PCI{,-X,e} devices:
+#
+#   pci=[ '[SSSS:]BB:DD.F[,option1[,option2[...]]]', ... ]
+#
+#   [SSSS]:BB:DD.F  "bus segment:bus:device.function"(1) of the device to
+#                   be assigned, bus segment is optional. All fields are
+#                   in hexadecimal and no field should be longer than that
+#                   as shown in the pattern. Successful assignment may need
+#                   certain hardware support and additional configurations
+#                   (e.g. VT-d, see docs/misc/vtd.txt for more details).
+#
+#       (1) bus segment is sometimes also referred to as the PCI "domain",
+#           not to be confused with Xen domain.
+#
+#
+#   optionN         per-device options in "key=val" format. Current
+#                   available options are:
+#                   - msitranslate=0|1
+#                      per-device overriden of pci_msitranslate, see below
+#                   - power_mgmt=0|1
+#                      per-device overriden of pci_power_mgmt, see below
+#
+# pci=[ '07:00.0', '07:00.1' ]
+
+#   MSI-INTx translation for MSI capable devices:
+#
+#   If it's set, Xen will enable MSI for the device that supports it even
+# if the guest don't use MSI. In the case, an IO-APIC type interrupt will
+# be injected to the guest every time a corresponding MSI message is
+# received.
+#   If the guest enables MSI or MSI-X, the translation is automatically
+# turned off.
+#
+# pci_msitranslate=1
+
+# PCI Power Management:
+#
+# If it's set, the guest OS will be able to program D0-D3hot states of the
+# PCI device for the purpose of low power consumption.
+#
+# pci_power_mgmt=0
+
+# Enable graphics passthrough:
+#
+# If it's set, and specify grapchis device BDF in pci passthrough option,
+# like pci=['xx:xx.x'], it enables graphics passthrough, default=0 
(disabled)
+# gfx_passthru=0

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH] Add xl domUs default configuration file
@ 2011-06-06 11:28 Fabio Fantoni
  2011-06-06 13:30 ` Stefano Stabellini
  0 siblings, 1 reply; 10+ messages in thread
From: Fabio Fantoni @ 2011-06-06 11:28 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 10975 bytes --]

This patch add xl domUs default configuration file, must be improved and 
implemented in the core xl.
About implementation on core i try but fail, about this configuration 
file i start from other xm, removed some unnecessary things or specific 
such as name and uuid missed in xl and add other, some description need 
to be improved.

# HG changeset patch
# User Fabio Fantoni
# Date 1307358064 -7200
# Node ID b94e5d172a99a89e2bf1570ded6e41051ef81052
# Parent  0c0884fd8b494932a4b707e339cbe1b881d09103
Add xl domUs default configuration file, must be improved and 
implemented in the core xl

Signed-off-by: Fabio Fantoni <fabio.fantoni@heliman.it>

diff -r 0c0884fd8b49 -r b94e5d172a99 tools/examples/Makefile
--- a/tools/examples/Makefile    Fri Jun 03 21:39:00 2011 +0100
+++ b/tools/examples/Makefile    Mon Jun 06 13:01:04 2011 +0200
@@ -22,6 +22,7 @@
  XEN_CONFIGS += xend-pci-quirks.sxp
  XEN_CONFIGS += xend-pci-permissive.sxp
  XEN_CONFIGS += xl.conf
+XEN_CONFIGS += xl-domu-default.conf
  XEN_CONFIGS += cpupool

  .PHONY: all
diff -r 0c0884fd8b49 -r b94e5d172a99 tools/examples/xl-domu-default.conf
--- /dev/null    Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/examples/xl-domu-default.conf    Mon Jun 06 13:01:04 2011 +0200
@@ -0,0 +1,243 @@
+#============================================================================ 

+# Xl configuration default for domU setting on 'xl create'.
+# This conf sets the defaults parameters used when a domain is created
+# using 'xl create' instead those in the core if not existing in the
+# domU config specific.
+#============================================================================ 

+
+#---------------------------------------------------------------------------- 

+# Kernel image file.
+# kernel = "/path/to/domU/kernel"
+
+# Ramdisk.
+# ramdisk = "/boot/initrd.gz"
+
+# The domain build function. HVM domain uses 'hvm'.
+# builder='hvm'
+
+# Initial memory allocation (in megabytes) for the new domain.
+#
+# WARNING: Creating a domain with insufficient memory may cause out of
+#          memory errors. The domain needs enough memory to boot kernel
+#          and modules. Allocating less than 32MBs is not recommended.
+# memory = 128
+
+# Shadow pagetable memory for the domain, in MB.
+# If not explicictly set, xend will pick an appropriate value.
+# Should be at least 2KB per MB of domain memory, plus a few MB per vcpu.
+# shadow_memory = 8
+
+#----------------------------------------------------------------------------- 

+# The number of cpus guest platform has, default=1
+# vcpus=1
+
+# Enable/disable HVM guest PAE, default=1 (enabled)
+# pae=1
+
+# Enable/disable HVM guest ACPI, default=1 (enabled)
+# acpi=1
+
+# Enable/disable HVM APIC mode, default=1 (enabled)
+# Note that this option is ignored if vcpus > 1
+# apic=1
+
+# Enable/disable HVM guest ACPI, default=1 (enabled)
+# acpi=1
+
+# Enable/disable HVM guest nx, default=1
+# nx=1
+
+# Enable/disable HVM guest viridian, default=0
+# viridian=1
+
+# Enable/disable HVM guest hpet, default=1
+# hpet=1
+
+# Enable/disable HVM guest vpt_align, default=1
+# vpt_align=1
+
+# Enable/disable HVM guest nestedhvm, default=0
+# nestedhvm=1
+
+# HVM guest video ram in megabyte, default 8
+# videoram=8
+
+# HVM guest timer_mode, default=1
+# timer_mode=1
+
+#---------------------------------------------------------------------------- 

+# Network configuration
+# type=ioemu specify the NIC is an ioemu device not netfront
+# vif = [ 'type=ioemu, bridge=xenbr0' ]
+
+#---------------------------------------------------------------------------- 

+# Define the disk devices you want the domain to have access to, and
+# what you want them accessible as.
+# For example can be put here a default installation cd.
+# disk = [ 'tap2:aio:/var/images/min-el3-i386.img,hdc:cdrom,r' ]
+
+#---------------------------------------------------------------------------- 

+# Configure the behaviour when a domain exits.  There are three 'reasons'
+# for a domain to stop: poweroff, reboot, and crash.  For each of these 
you
+# may specify:
+#
+#   "destroy",        meaning that the domain is cleaned up as normal;
+#   "restart",        meaning that a new domain is started in place of 
the old
+#                     one;
+#   "preserve",       meaning that no clean-up is done until the domain is
+#                     manually destroyed (using xm destroy, for 
example); or
+#   "rename-restart", meaning that the old domain is not cleaned up, 
but is
+#                     renamed and a new domain started in its place.
+#
+# In the event a domain stops due to a crash, you have the additional 
options:
+#
+#   "coredump-destroy", meaning dump the crashed domain's core and then 
destroy;
+#   "coredump-restart', meaning dump the crashed domain's core and the 
restart.
+#
+# The default is
+#
+#   on_poweroff = 'destroy'
+#   on_reboot   = 'restart'
+#   on_crash    = 'restart'
+
+# on_poweroff = 'destroy'
+# on_reboot   = 'restart'
+# on_crash    = 'restart'
+# on_watchdog = 'destroy'
+
+#============================================================================ 

+# boot on floppy (a), hard disk (c), Network (n) or CD-ROM (d)
+# default: hard disk, cd-rom, floppy
+# boot="cd"
+
+#---------------------------------------------------------------------------- 

+# enable SDL library for graphics, default = 0
+# sdl=0
+
+#---------------------------------------------------------------------------- 

+# enable OpenGL for texture rendering inside the SDL window, default = 0
+# valid only if sdl is enabled.
+# opengl=0
+
+#---------------------------------------------------------------------------- 

+# enable VNC library for graphics, default = 1
+# vnc=1
+
+#---------------------------------------------------------------------------- 

+# address that should be listened on for the VNC server if vnc is set.
+# default is to use 'vnc-listen' setting from
+# auxbin.xen_configdir() + /xend-config.sxp
+# vnclisten="127.0.0.1"
+
+#---------------------------------------------------------------------------- 

+# set VNC display number, default = domid
+# vncdisplay=1
+
+#---------------------------------------------------------------------------- 

+# try to find an unused port for the VNC server, default = 1
+# vncunused=1
+
+#---------------------------------------------------------------------------- 

+# set password for domain's VNC console
+# default is depents on vncpasswd in xend-config.sxp
+# vncpasswd=''
+
+#---------------------------------------------------------------------------- 

+# no graphics, use serial port
+# nographic=0
+
+#---------------------------------------------------------------------------- 

+# enable stdvga, default = 0 (use cirrus logic device model)
+# stdvga=0
+
+#----------------------------------------------------------------------------- 

+#   serial port re-direct to pty deivce, /dev/pts/n
+#   then xm console or minicom can connect
+# serial='pty'
+
+# For disable migrate
+# nomigrate=1
+
+#---------------------------------------------------------------------------- 

+#   tsc_mode : TSC mode (0=default, 1=native TSC, 2=never emulate, 
3=pvrdtscp)
+#   emulate TSC provides synced TSC for all vcpus, but lose perfomrance.
+#   native TSC leverages hardware's TSC(no perf loss), but vcpu's TSC 
may lose
+#    sync due to hardware's unreliable/unsynced TSC between CPUs.
+#   default intelligently uses native TSC on machines where it is safe, 
but
+#    switches to emulated if necessary after save/restore/migration
+#   pvrdtscp is for intelligent apps that use special Xen-only 
paravirtualized
+#    cpuid instructions to obtain offset/scaling/migration info and 
maximize
+#    performance within pools of machines that support the rdtscp 
instruction
+# tsc_mode=0
+
+#----------------------------------------------------------------------------- 

+#   enable sound card support, [sb16|es1370|all|..,..], default none
+# soundhw='sb16'
+
+#----------------------------------------------------------------------------- 

+#   Enable USB support (specific devices specified at runtime through the
+#            monitor window)
+# usb=1
+
+#   Enable USB mouse support (only enable one of the following, `mouse' 
for
+#                  PS/2 protocol relative mouse, `tablet' for
+#                  absolute mouse)
+# usbdevice='mouse'
+# usbdevice='tablet'
+
+#----------------------------------------------------------------------------- 

+# Set keyboard layout, default is en-us keyboard.
+# keymap='en-us'
+
+#----------------------------------------------------------------------------- 

+# Enable/disable xen platform PCI device, default=1 (enabled)
+# xen_platform_pci=1
+
+#----------------------------------------------------------------------------- 

+#   Configure passthrough PCI{,-X,e} devices:
+#
+#   pci=[ '[SSSS:]BB:DD.F[,option1[,option2[...]]]', ... ]
+#
+#   [SSSS]:BB:DD.F  "bus segment:bus:device.function"(1) of the device to
+#                   be assigned, bus segment is optional. All fields are
+#                   in hexadecimal and no field should be longer than that
+#                   as shown in the pattern. Successful assignment may 
need
+#                   certain hardware support and additional configurations
+#                   (e.g. VT-d, see docs/misc/vtd.txt for more details).
+#
+#       (1) bus segment is sometimes also referred to as the PCI "domain",
+#           not to be confused with Xen domain.
+#
+#
+#   optionN         per-device options in "key=val" format. Current
+#                   available options are:
+#                   - msitranslate=0|1
+#                      per-device overriden of pci_msitranslate, see below
+#                   - power_mgmt=0|1
+#                      per-device overriden of pci_power_mgmt, see below
+#
+# pci=[ '07:00.0', '07:00.1' ]
+
+#   MSI-INTx translation for MSI capable devices:
+#
+#   If it's set, Xen will enable MSI for the device that supports it even
+# if the guest don't use MSI. In the case, an IO-APIC type interrupt will
+# be injected to the guest every time a corresponding MSI message is
+# received.
+#   If the guest enables MSI or MSI-X, the translation is automatically
+# turned off.
+#
+# pci_msitranslate=1
+
+# PCI Power Management:
+#
+# If it's set, the guest OS will be able to program D0-D3hot states of the
+# PCI device for the purpose of low power consumption.
+#
+# pci_power_mgmt=0
+
+# Enable graphics passthrough:
+#
+# If it's set, and specify grapchis device BDF in pci passthrough option,
+# like pci=['xx:xx.x'], it enables graphics passthrough, default=0 
(disabled)
+# gfx_passthru=0


[-- Attachment #1.2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 6549 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] Add xl domUs default configuration file
  2011-06-06 11:28 [PATCH] Add xl domUs default configuration file Fabio Fantoni
@ 2011-06-06 13:30 ` Stefano Stabellini
  2011-06-06 14:06   ` Fabio Fantoni
  2011-06-06 15:01   ` Ian Campbell
  0 siblings, 2 replies; 10+ messages in thread
From: Stefano Stabellini @ 2011-06-06 13:30 UTC (permalink / raw)
  To: Fabio Fantoni; +Cc: xen-devel

On Mon, 6 Jun 2011, Fabio Fantoni wrote:
> This patch add xl domUs default configuration file, must be improved and 
> implemented in the core xl.
> About implementation on core i try but fail, about this configuration 
> file i start from other xm, removed some unnecessary things or specific 
> such as name and uuid missed in xl and add other, some description need 
> to be improved.

What do you mean? Xl already provides defaults for almost everything...
In any case the idea of a default xl config file is not bad.


> # HG changeset patch
> # User Fabio Fantoni
> # Date 1307358064 -7200
> # Node ID b94e5d172a99a89e2bf1570ded6e41051ef81052
> # Parent  0c0884fd8b494932a4b707e339cbe1b881d09103
> Add xl domUs default configuration file, must be improved and 
> implemented in the core xl
> 
> Signed-off-by: Fabio Fantoni <fabio.fantoni@heliman.it>
> 
> diff -r 0c0884fd8b49 -r b94e5d172a99 tools/examples/Makefile
> --- a/tools/examples/Makefile    Fri Jun 03 21:39:00 2011 +0100
> +++ b/tools/examples/Makefile    Mon Jun 06 13:01:04 2011 +0200
> @@ -22,6 +22,7 @@
>   XEN_CONFIGS += xend-pci-quirks.sxp
>   XEN_CONFIGS += xend-pci-permissive.sxp
>   XEN_CONFIGS += xl.conf
> +XEN_CONFIGS += xl-domu-default.conf
>   XEN_CONFIGS += cpupool
> 
>   .PHONY: all
> diff -r 0c0884fd8b49 -r b94e5d172a99 tools/examples/xl-domu-default.conf
> --- /dev/null    Thu Jan 01 00:00:00 1970 +0000
> +++ b/tools/examples/xl-domu-default.conf    Mon Jun 06 13:01:04 2011 +0200
> @@ -0,0 +1,243 @@
> +#============================================================================ 
> 
> +# Xl configuration default for domU setting on 'xl create'.
> +# This conf sets the defaults parameters used when a domain is created
> +# using 'xl create' instead those in the core if not existing in the
> +# domU config specific.
> +#============================================================================ 
> 
> +
> +#---------------------------------------------------------------------------- 
> 
> +# Kernel image file.
> +# kernel = "/path/to/domU/kernel"
> +
> +# Ramdisk.
> +# ramdisk = "/boot/initrd.gz"
> +
> +# The domain build function. HVM domain uses 'hvm'.
> +# builder='hvm'
> +
> +# Initial memory allocation (in megabytes) for the new domain.
> +#
> +# WARNING: Creating a domain with insufficient memory may cause out of
> +#          memory errors. The domain needs enough memory to boot kernel
> +#          and modules. Allocating less than 32MBs is not recommended.
> +# memory = 128
> +
> +# Shadow pagetable memory for the domain, in MB.
> +# If not explicictly set, xend will pick an appropriate value.
> +# Should be at least 2KB per MB of domain memory, plus a few MB per vcpu.
> +# shadow_memory = 8

I would remove shadow_memory completely, it is better to let libxl do
the calculations.


> +
> +#----------------------------------------------------------------------------- 
> 
> +# The number of cpus guest platform has, default=1
> +# vcpus=1
> +
> +# Enable/disable HVM guest PAE, default=1 (enabled)
> +# pae=1
> +
> +# Enable/disable HVM guest ACPI, default=1 (enabled)
> +# acpi=1
> +
> +# Enable/disable HVM APIC mode, default=1 (enabled)
> +# Note that this option is ignored if vcpus > 1
> +# apic=1
> +
> +# Enable/disable HVM guest ACPI, default=1 (enabled)
> +# acpi=1
> +
> +# Enable/disable HVM guest nx, default=1
> +# nx=1
> +
> +# Enable/disable HVM guest viridian, default=0
> +# viridian=1
> +
> +# Enable/disable HVM guest hpet, default=1
> +# hpet=1
> +
> +# Enable/disable HVM guest vpt_align, default=1
> +# vpt_align=1
> +
> +# Enable/disable HVM guest nestedhvm, default=0
> +# nestedhvm=1
> +
> +# HVM guest video ram in megabyte, default 8
> +# videoram=8
> +
> +# HVM guest timer_mode, default=1
> +# timer_mode=1
> +
> +#---------------------------------------------------------------------------- 
> 
> +# Network configuration
> +# type=ioemu specify the NIC is an ioemu device not netfront
> +# vif = [ 'type=ioemu, bridge=xenbr0' ]
> +
> +#---------------------------------------------------------------------------- 
> 
> +# Define the disk devices you want the domain to have access to, and
> +# what you want them accessible as.
> +# For example can be put here a default installation cd.
> +# disk = [ 'tap2:aio:/var/images/min-el3-i386.img,hdc:cdrom,r' ]

tap2 shouldn't be the default, probably is better to specify just file: here

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] Add xl domUs default configuration file
  2011-06-06 13:30 ` Stefano Stabellini
@ 2011-06-06 14:06   ` Fabio Fantoni
  2011-06-06 15:01   ` Ian Campbell
  1 sibling, 0 replies; 10+ messages in thread
From: Fabio Fantoni @ 2011-06-06 14:06 UTC (permalink / raw)
  To: Stefano Stabellini; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 408 bytes --]

Il 06/06/2011 15:30, Stefano Stabellini ha scritto:
> What do you mean? Xl already provides defaults for almost everything...
> In any case the idea of a default xl config file is not bad.
For example xend have some defaults config of domus in xend-config.sxp 
(keymap vnc ecc), with xl all default config of domus in one file would 
be perfect, I hope I explained myself in spite of my poor English


[-- Attachment #1.2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 6549 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] Add xl domUs default configuration file
  2011-06-06 13:30 ` Stefano Stabellini
  2011-06-06 14:06   ` Fabio Fantoni
@ 2011-06-06 15:01   ` Ian Campbell
  2011-06-06 15:14     ` Stefano Stabellini
  1 sibling, 1 reply; 10+ messages in thread
From: Ian Campbell @ 2011-06-06 15:01 UTC (permalink / raw)
  To: Stefano Stabellini; +Cc: xen-devel, Fabio Fantoni

On Mon, 2011-06-06 at 14:30 +0100, Stefano Stabellini wrote:
> What do you mean? Xl already provides defaults for almost
> everything...
> In any case the idea of a default xl config file is not bad.

Wouldn't something need to read this file for it to be controlling the
defaults? Would that "something" replace the libxl_*_init and other
places where the library provides a default? How does this work with
other toolstacks using libxl?

Or is this intended to be an xl version of the existing xmexample.*
files? In which case calling it xlexample.* might help people towards
this conclusion. Also avoiding the term "default" would help -- a
default is different to an example.

> > +# Define the disk devices you want the domain to have access to,
> and
> > +# what you want them accessible as.
> > +# For example can be put here a default installation cd.
> > +# disk = [ 'tap2:aio:/var/images/min-el3-i386.img,hdc:cdrom,r' ]
> 
> tap2 shouldn't be the default, probably is better to specify just
> file: here

If this file really is supposed to contain defaults and not examples
then I don't think a default makes sense for this kind of setting.

There is no sane default for disks other than None, they are always
going to have to be in the guest specific config file. Similarly for
nics, kernels, ramdisk etc.

Ian.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] Add xl domUs default configuration file
  2011-06-06 15:01   ` Ian Campbell
@ 2011-06-06 15:14     ` Stefano Stabellini
  2011-06-06 15:32       ` Ian Campbell
  2011-06-08  8:57       ` Fabio Fantoni
  0 siblings, 2 replies; 10+ messages in thread
From: Stefano Stabellini @ 2011-06-06 15:14 UTC (permalink / raw)
  To: Ian Campbell; +Cc: Fabio Fantoni, xen-devel, Stefano Stabellini

On Mon, 6 Jun 2011, Ian Campbell wrote:
> On Mon, 2011-06-06 at 14:30 +0100, Stefano Stabellini wrote:
> > What do you mean? Xl already provides defaults for almost
> > everything...
> > In any case the idea of a default xl config file is not bad.
> 
> Wouldn't something need to read this file for it to be controlling the
> defaults? Would that "something" replace the libxl_*_init and other
> places where the library provides a default? How does this work with
> other toolstacks using libxl?
> 
> Or is this intended to be an xl version of the existing xmexample.*
> files? In which case calling it xlexample.* might help people towards
> this conclusion. Also avoiding the term "default" would help -- a
> default is different to an example.

After Fabio's reply I think that the real intention was to introduce a
new config file to set the default value of most options, across
multiple VMs, in fact replacing all the libxl_*_init functions.
The xend equivalent would be xend-config.sxp.

I think that could probably be done in xl.conf, it is an xl thing more
than a libxl thing. Basically we need to run the parser twice on
xl.conf first and then on the VM config file.


> > > +# Define the disk devices you want the domain to have access to,
> > and
> > > +# what you want them accessible as.
> > > +# For example can be put here a default installation cd.
> > > +# disk = [ 'tap2:aio:/var/images/min-el3-i386.img,hdc:cdrom,r' ]
> > 
> > tap2 shouldn't be the default, probably is better to specify just
> > file: here
> 
> If this file really is supposed to contain defaults and not examples
> then I don't think a default makes sense for this kind of setting.

Yes, indeed. I think it should just be an example.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] Add xl domUs default configuration file
  2011-06-06 15:14     ` Stefano Stabellini
@ 2011-06-06 15:32       ` Ian Campbell
  2011-06-08  8:57       ` Fabio Fantoni
  1 sibling, 0 replies; 10+ messages in thread
From: Ian Campbell @ 2011-06-06 15:32 UTC (permalink / raw)
  To: Stefano Stabellini; +Cc: xen-devel, Fabio Fantoni

On Mon, 2011-06-06 at 16:14 +0100, Stefano Stabellini wrote:
> On Mon, 6 Jun 2011, Ian Campbell wrote:
> > On Mon, 2011-06-06 at 14:30 +0100, Stefano Stabellini wrote:
> > > What do you mean? Xl already provides defaults for almost
> > > everything...
> > > In any case the idea of a default xl config file is not bad.
> > 
> > Wouldn't something need to read this file for it to be controlling the
> > defaults? Would that "something" replace the libxl_*_init and other
> > places where the library provides a default? How does this work with
> > other toolstacks using libxl?
> > 
> > Or is this intended to be an xl version of the existing xmexample.*
> > files? In which case calling it xlexample.* might help people towards
> > this conclusion. Also avoiding the term "default" would help -- a
> > default is different to an example.
> 
> After Fabio's reply I think that the real intention was to introduce a
> new config file to set the default value of most options, across
> multiple VMs, in fact replacing all the libxl_*_init functions.
> The xend equivalent would be xend-config.sxp.
> 
> I think that could probably be done in xl.conf, it is an xl thing more
> than a libxl thing. Basically we need to run the parser twice on
> xl.conf first and then on the VM config file.
> 
> 
> > > > +# Define the disk devices you want the domain to have access to,
> > > and
> > > > +# what you want them accessible as.
> > > > +# For example can be put here a default installation cd.
> > > > +# disk = [ 'tap2:aio:/var/images/min-el3-i386.img,hdc:cdrom,r' ]
> > > 
> > > tap2 shouldn't be the default, probably is better to specify just
> > > file: here
> > 
> > If this file really is supposed to contain defaults and not examples
> > then I don't think a default makes sense for this kind of setting.
> 
> Yes, indeed. I think it should just be an example.

If this is really a file full of defaults then only things which have a
sensible non-Null default value that people might want to change should
be in there. Disk does not fall into this and neither do many of the
other settings in the proposed patch. 

A file full of examples should be separate.


Ian.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] Add xl domUs default configuration file
  2011-06-06 15:14     ` Stefano Stabellini
  2011-06-06 15:32       ` Ian Campbell
@ 2011-06-08  8:57       ` Fabio Fantoni
  2011-06-08  9:15         ` Ian Campbell
  1 sibling, 1 reply; 10+ messages in thread
From: Fabio Fantoni @ 2011-06-08  8:57 UTC (permalink / raw)
  To: Stefano Stabellini; +Cc: Ian Campbell, xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 10462 bytes --]

Il 06/06/2011 17:14, Stefano Stabellini ha scritto:
> After Fabio's reply I think that the real intention was to introduce a
> new config file to set the default value of most options, across
> multiple VMs, in fact replacing all the libxl_*_init functions.
> The xend equivalent would be xend-config.sxp.
Yes, as described in the file added, if value exist in default config 
take that takes the place of the core in default.
Here the patch improved and with remove of disk and shadow_memory not 
necessary on global defaults.

# HG changeset patch
# User Fabio Fantoni
# Date 1307522478 -7200
# Node ID b6d0a66134d8fda3ac7a317b40862d0460096b12
# Parent  c231a26a29327aa3c737170e04c738289be2d309
Add xl domUs default configuration file, must be improved and 
implemented in the core xl

Signed-off-by: Fabio Fantoni <fabio.fantoni@heliman.it>

diff -r c231a26a2932 -r b6d0a66134d8 tools/examples/Makefile
--- a/tools/examples/Makefile    Mon Jun 06 09:56:08 2011 +0100
+++ b/tools/examples/Makefile    Wed Jun 08 10:41:18 2011 +0200
@@ -22,6 +22,7 @@
  XEN_CONFIGS += xend-pci-quirks.sxp
  XEN_CONFIGS += xend-pci-permissive.sxp
  XEN_CONFIGS += xl.conf
+XEN_CONFIGS += xl-domu-default.conf
  XEN_CONFIGS += cpupool

  .PHONY: all
diff -r c231a26a2932 -r b6d0a66134d8 tools/examples/xl-domu-default.conf
--- /dev/null    Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/examples/xl-domu-default.conf    Wed Jun 08 10:41:18 2011 +0200
@@ -0,0 +1,230 @@
+#============================================================================
+# Xl configuration default for domU setting on 'xl create'.
+# This conf sets the defaults parameters used when a domain is created
+# using 'xl create' instead those in the core if not existing in the
+# domU config specific.
+#============================================================================
+
+#----------------------------------------------------------------------------
+# Kernel image file.
+# kernel = "/path/to/domU/kernel"
+
+# Ramdisk.
+# ramdisk = "/boot/initrd.gz"
+
+# The domain build function. HVM domain uses 'hvm'.
+# builder='hvm'
+
+# Initial memory allocation (in megabytes) for the new domain.
+#
+# WARNING: Creating a domain with insufficient memory may cause out of
+#          memory errors. The domain needs enough memory to boot kernel
+#          and modules. Allocating less than 32MBs is not recommended.
+# memory = 128
+
+#-----------------------------------------------------------------------------
+# The number of cpus guest platform has, default=1
+# vcpus=1
+
+# Enable/disable HVM guest PAE, default=1 (enabled)
+# pae=1
+
+# Enable/disable HVM guest ACPI, default=1 (enabled)
+# acpi=1
+
+# Enable/disable HVM APIC mode, default=1 (enabled)
+# Note that this option is ignored if vcpus > 1
+# apic=1
+
+# Enable/disable HVM guest ACPI, default=1 (enabled)
+# acpi=1
+
+# Enable/disable HVM guest nx, default=1
+# nx=1
+
+# Enable/disable HVM guest viridian, default=0
+# viridian=1
+
+# Enable/disable HVM guest hpet, default=1
+# hpet=1
+
+# Enable/disable HVM guest vpt_align, default=1
+# vpt_align=1
+
+# Enable/disable HVM guest nestedhvm, default=0
+# nestedhvm=1
+
+# HVM guest video ram in megabyte, default 8
+# videoram=8
+
+# HVM guest timer_mode, default=1
+# timer_mode=1
+
+#----------------------------------------------------------------------------
+# Network configuration
+# type=ioemu specify the NIC is an ioemu device not netfront
+# vif = [ 'type=ioemu, bridge=xenbr0' ]
+
+#----------------------------------------------------------------------------
+# Configure the behaviour when a domain exits.  There are three 'reasons'
+# for a domain to stop: poweroff, reboot, and crash.  For each of these you
+# may specify:
+#
+#   "destroy",        meaning that the domain is cleaned up as normal;
+#   "restart",        meaning that a new domain is started in place of 
the old
+#                     one;
+#   "preserve",       meaning that no clean-up is done until the domain is
+#                     manually destroyed (using xm destroy, for 
example); or
+#   "rename-restart", meaning that the old domain is not cleaned up, but is
+#                     renamed and a new domain started in its place.
+#
+# In the event a domain stops due to a crash, you have the additional 
options:
+#
+#   "coredump-destroy", meaning dump the crashed domain's core and then 
destroy;
+#   "coredump-restart', meaning dump the crashed domain's core and the 
restart.
+#
+# The default is
+#
+#   on_poweroff = 'destroy'
+#   on_reboot   = 'restart'
+#   on_crash    = 'restart'
+
+# on_poweroff = 'destroy'
+# on_reboot   = 'restart'
+# on_crash    = 'restart'
+# on_watchdog = 'destroy'
+
+#============================================================================
+# boot on floppy (a), hard disk (c), Network (n) or CD-ROM (d)
+# default: hard disk, cd-rom, floppy
+# boot="cd"
+
+#----------------------------------------------------------------------------
+# enable SDL library for graphics, default = 0
+# sdl=0
+
+#----------------------------------------------------------------------------
+# enable OpenGL for texture rendering inside the SDL window, default = 0
+# valid only if sdl is enabled.
+# opengl=0
+
+#----------------------------------------------------------------------------
+# enable VNC library for graphics, default = 1
+# vnc=1
+
+#----------------------------------------------------------------------------
+# address that should be listened on for the VNC server if vnc is set.
+# vnclisten="127.0.0.1"
+
+#----------------------------------------------------------------------------
+# set VNC display number, default = domid
+# vncdisplay=1
+
+#----------------------------------------------------------------------------
+# try to find an unused port for the VNC server, default = 1
+# vncunused=1
+
+#----------------------------------------------------------------------------
+# set password for domain's VNC console
+# default is depents on vncpasswd in xend-config.sxp
+# vncpasswd=''
+
+#----------------------------------------------------------------------------
+# no graphics, use serial port
+# nographic=0
+
+#----------------------------------------------------------------------------
+# enable stdvga, default = 0 (use cirrus logic device model)
+# stdvga=0
+
+#-----------------------------------------------------------------------------
+#   serial port re-direct to pty deivce, /dev/pts/n
+#   then xm console or minicom can connect
+# serial='pty'
+
+# For disable migrate
+# nomigrate=1
+
+#----------------------------------------------------------------------------
+#   tsc_mode : TSC mode (0=default, 1=native TSC, 2=never emulate, 
3=pvrdtscp)
+#   emulate TSC provides synced TSC for all vcpus, but lose perfomrance.
+#   native TSC leverages hardware's TSC(no perf loss), but vcpu's TSC 
may lose
+#    sync due to hardware's unreliable/unsynced TSC between CPUs.
+#   default intelligently uses native TSC on machines where it is safe, but
+#    switches to emulated if necessary after save/restore/migration
+#   pvrdtscp is for intelligent apps that use special Xen-only 
paravirtualized
+#    cpuid instructions to obtain offset/scaling/migration info and 
maximize
+#    performance within pools of machines that support the rdtscp 
instruction
+# tsc_mode=0
+
+#-----------------------------------------------------------------------------
+#   enable sound card support, [sb16|es1370|all|..,..], default none
+# soundhw='sb16'
+
+#-----------------------------------------------------------------------------
+#   Enable USB support (specific devices specified at runtime through the
+#            monitor window)
+# usb=1
+
+#   Enable USB mouse support (only enable one of the following, `mouse' for
+#                  PS/2 protocol relative mouse, `tablet' for
+#                  absolute mouse)
+# usbdevice='mouse'
+# usbdevice='tablet'
+
+#-----------------------------------------------------------------------------
+# Set keyboard layout, default is en-us keyboard.
+# keymap='en-us'
+
+#-----------------------------------------------------------------------------
+# Enable/disable xen platform PCI device, default=1 (enabled)
+# xen_platform_pci=1
+
+#-----------------------------------------------------------------------------
+#   Configure passthrough PCI{,-X,e} devices:
+#
+#   pci=[ '[SSSS:]BB:DD.F[,option1[,option2[...]]]', ... ]
+#
+#   [SSSS]:BB:DD.F  "bus segment:bus:device.function"(1) of the device to
+#                   be assigned, bus segment is optional. All fields are
+#                   in hexadecimal and no field should be longer than that
+#                   as shown in the pattern. Successful assignment may need
+#                   certain hardware support and additional configurations
+#                   (e.g. VT-d, see docs/misc/vtd.txt for more details).
+#
+#       (1) bus segment is sometimes also referred to as the PCI "domain",
+#           not to be confused with Xen domain.
+#
+#
+#   optionN         per-device options in "key=val" format. Current
+#                   available options are:
+#                   - msitranslate=0|1
+#                      per-device overriden of pci_msitranslate, see below
+#                   - power_mgmt=0|1
+#                      per-device overriden of pci_power_mgmt, see below
+#
+# pci=[ '07:00.0', '07:00.1' ]
+
+#   MSI-INTx translation for MSI capable devices:
+#
+#   If it's set, Xen will enable MSI for the device that supports it even
+# if the guest don't use MSI. In the case, an IO-APIC type interrupt will
+# be injected to the guest every time a corresponding MSI message is
+# received.
+#   If the guest enables MSI or MSI-X, the translation is automatically
+# turned off.
+#
+# pci_msitranslate=1
+
+# PCI Power Management:
+#
+# If it's set, the guest OS will be able to program D0-D3hot states of the
+# PCI device for the purpose of low power consumption.
+#
+# pci_power_mgmt=0
+
+# Enable graphics passthrough:
+#
+# If it's set, and specify grapchis device BDF in pci passthrough option,
+# like pci=['xx:xx.x'], it enables graphics passthrough, default=0 
(disabled)
+# gfx_passthru=0



[-- Attachment #1.2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 6549 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] Add xl domUs default configuration file
  2011-06-08  8:57       ` Fabio Fantoni
@ 2011-06-08  9:15         ` Ian Campbell
  0 siblings, 0 replies; 10+ messages in thread
From: Ian Campbell @ 2011-06-08  9:15 UTC (permalink / raw)
  To: fantonifabio@tiscali.it; +Cc: xen-devel, Stefano Stabellini

On Wed, 2011-06-08 at 09:57 +0100, Fabio Fantoni wrote:
> Il 06/06/2011 17:14, Stefano Stabellini ha scritto:
> > After Fabio's reply I think that the real intention was to introduce a
> > new config file to set the default value of most options, across
> > multiple VMs, in fact replacing all the libxl_*_init functions.
> > The xend equivalent would be xend-config.sxp.
> Yes, as described in the file added, if value exist in default config 
> take that takes the place of the core in default.
> Here the patch improved and with remove of disk and shadow_memory not 
> necessary on global defaults.

A bunch of the others (kernel, ramdisk, pci pass through etc) seem like
unlikely candidates for a global default as well. In fact the vast
majority of its contents seems to fall into that class, it certain far
outstrips anything which you could put xend-config.sxp.

Please go through the file and evaluate each setting individually and
decide if it makes sense for it to have a default, please don't simply
remove each one as I point them out to you on each iteration.

Perhaps this file should just be empty in the default install? User will
come to know that they can put anything they could put in a standard cfg
file here to make it a global setting.

I'm slightly wary of allowing all settings to be set in the default
config, in many cases it seems a bit like giving the admin far more rope
than they need. But if the alternative is to manually decide for each
setting as it is added then this seems like the easiest way...

> # HG changeset patch
> # User Fabio Fantoni
> # Date 1307522478 -7200
> # Node ID b6d0a66134d8fda3ac7a317b40862d0460096b12
> # Parent  c231a26a29327aa3c737170e04c738289be2d309
> Add xl domUs default configuration file, must be improved and 
> implemented in the core xl

It's hard to see or evaluate the utility of this patch without the xl
side to make use of it. In fact it seems rather pointless without it.

> Signed-off-by: Fabio Fantoni <fabio.fantoni@heliman.it>
> 
> diff -r c231a26a2932 -r b6d0a66134d8 tools/examples/Makefile
> --- a/tools/examples/Makefile    Mon Jun 06 09:56:08 2011 +0100
> +++ b/tools/examples/Makefile    Wed Jun 08 10:41:18 2011 +0200
> @@ -22,6 +22,7 @@
>   XEN_CONFIGS += xend-pci-quirks.sxp
>   XEN_CONFIGS += xend-pci-permissive.sxp
>   XEN_CONFIGS += xl.conf
> +XEN_CONFIGS += xl-domu-default.conf
>   XEN_CONFIGS += cpupool
> 
>   .PHONY: all
> diff -r c231a26a2932 -r b6d0a66134d8 tools/examples/xl-domu-default.conf
> --- /dev/null    Thu Jan 01 00:00:00 1970 +0000
> +++ b/tools/examples/xl-domu-default.conf    Wed Jun 08 10:41:18 2011 +0200
> @@ -0,0 +1,230 @@
> +#============================================================================
> +# Xl configuration default for domU setting on 'xl create'.
> +# This conf sets the defaults parameters used when a domain is created
> +# using 'xl create' instead those in the core if not existing in the
> +# domU config specific.
> +#============================================================================
> +
> +#----------------------------------------------------------------------------
> +# Kernel image file.
> +# kernel = "/path/to/domU/kernel"
> +
> +# Ramdisk.
> +# ramdisk = "/boot/initrd.gz"
> +
> +# The domain build function. HVM domain uses 'hvm'.
> +# builder='hvm'
> +
> +# Initial memory allocation (in megabytes) for the new domain.
> +#
> +# WARNING: Creating a domain with insufficient memory may cause out of
> +#          memory errors. The domain needs enough memory to boot kernel
> +#          and modules. Allocating less than 32MBs is not recommended.
> +# memory = 128
> +
> +#-----------------------------------------------------------------------------
> +# The number of cpus guest platform has, default=1
> +# vcpus=1
> +
> +# Enable/disable HVM guest PAE, default=1 (enabled)
> +# pae=1
> +
> +# Enable/disable HVM guest ACPI, default=1 (enabled)
> +# acpi=1
> +
> +# Enable/disable HVM APIC mode, default=1 (enabled)
> +# Note that this option is ignored if vcpus > 1
> +# apic=1
> +
> +# Enable/disable HVM guest ACPI, default=1 (enabled)
> +# acpi=1
> +
> +# Enable/disable HVM guest nx, default=1
> +# nx=1
> +
> +# Enable/disable HVM guest viridian, default=0
> +# viridian=1
> +
> +# Enable/disable HVM guest hpet, default=1
> +# hpet=1
> +
> +# Enable/disable HVM guest vpt_align, default=1
> +# vpt_align=1
> +
> +# Enable/disable HVM guest nestedhvm, default=0
> +# nestedhvm=1
> +
> +# HVM guest video ram in megabyte, default 8
> +# videoram=8
> +
> +# HVM guest timer_mode, default=1
> +# timer_mode=1
> +
> +#----------------------------------------------------------------------------
> +# Network configuration
> +# type=ioemu specify the NIC is an ioemu device not netfront
> +# vif = [ 'type=ioemu, bridge=xenbr0' ]
> +
> +#----------------------------------------------------------------------------
> +# Configure the behaviour when a domain exits.  There are three 'reasons'
> +# for a domain to stop: poweroff, reboot, and crash.  For each of these you
> +# may specify:
> +#
> +#   "destroy",        meaning that the domain is cleaned up as normal;
> +#   "restart",        meaning that a new domain is started in place of 
> the old
> +#                     one;
> +#   "preserve",       meaning that no clean-up is done until the domain is
> +#                     manually destroyed (using xm destroy, for 
> example); or
> +#   "rename-restart", meaning that the old domain is not cleaned up, but is
> +#                     renamed and a new domain started in its place.
> +#
> +# In the event a domain stops due to a crash, you have the additional 
> options:
> +#
> +#   "coredump-destroy", meaning dump the crashed domain's core and then 
> destroy;
> +#   "coredump-restart', meaning dump the crashed domain's core and the 
> restart.
> +#
> +# The default is
> +#
> +#   on_poweroff = 'destroy'
> +#   on_reboot   = 'restart'
> +#   on_crash    = 'restart'
> +
> +# on_poweroff = 'destroy'
> +# on_reboot   = 'restart'
> +# on_crash    = 'restart'
> +# on_watchdog = 'destroy'
> +
> +#============================================================================
> +# boot on floppy (a), hard disk (c), Network (n) or CD-ROM (d)
> +# default: hard disk, cd-rom, floppy
> +# boot="cd"
> +
> +#----------------------------------------------------------------------------
> +# enable SDL library for graphics, default = 0
> +# sdl=0
> +
> +#----------------------------------------------------------------------------
> +# enable OpenGL for texture rendering inside the SDL window, default = 0
> +# valid only if sdl is enabled.
> +# opengl=0
> +
> +#----------------------------------------------------------------------------
> +# enable VNC library for graphics, default = 1
> +# vnc=1
> +
> +#----------------------------------------------------------------------------
> +# address that should be listened on for the VNC server if vnc is set.
> +# vnclisten="127.0.0.1"
> +
> +#----------------------------------------------------------------------------
> +# set VNC display number, default = domid
> +# vncdisplay=1
> +
> +#----------------------------------------------------------------------------
> +# try to find an unused port for the VNC server, default = 1
> +# vncunused=1
> +
> +#----------------------------------------------------------------------------
> +# set password for domain's VNC console
> +# default is depents on vncpasswd in xend-config.sxp
> +# vncpasswd=''
> +
> +#----------------------------------------------------------------------------
> +# no graphics, use serial port
> +# nographic=0
> +
> +#----------------------------------------------------------------------------
> +# enable stdvga, default = 0 (use cirrus logic device model)
> +# stdvga=0
> +
> +#-----------------------------------------------------------------------------
> +#   serial port re-direct to pty deivce, /dev/pts/n
> +#   then xm console or minicom can connect
> +# serial='pty'
> +
> +# For disable migrate
> +# nomigrate=1
> +
> +#----------------------------------------------------------------------------
> +#   tsc_mode : TSC mode (0=default, 1=native TSC, 2=never emulate, 
> 3=pvrdtscp)
> +#   emulate TSC provides synced TSC for all vcpus, but lose perfomrance.
> +#   native TSC leverages hardware's TSC(no perf loss), but vcpu's TSC 
> may lose
> +#    sync due to hardware's unreliable/unsynced TSC between CPUs.
> +#   default intelligently uses native TSC on machines where it is safe, but
> +#    switches to emulated if necessary after save/restore/migration
> +#   pvrdtscp is for intelligent apps that use special Xen-only 
> paravirtualized
> +#    cpuid instructions to obtain offset/scaling/migration info and 
> maximize
> +#    performance within pools of machines that support the rdtscp 
> instruction
> +# tsc_mode=0
> +
> +#-----------------------------------------------------------------------------
> +#   enable sound card support, [sb16|es1370|all|..,..], default none
> +# soundhw='sb16'
> +
> +#-----------------------------------------------------------------------------
> +#   Enable USB support (specific devices specified at runtime through the
> +#            monitor window)
> +# usb=1
> +
> +#   Enable USB mouse support (only enable one of the following, `mouse' for
> +#                  PS/2 protocol relative mouse, `tablet' for
> +#                  absolute mouse)
> +# usbdevice='mouse'
> +# usbdevice='tablet'
> +
> +#-----------------------------------------------------------------------------
> +# Set keyboard layout, default is en-us keyboard.
> +# keymap='en-us'
> +
> +#-----------------------------------------------------------------------------
> +# Enable/disable xen platform PCI device, default=1 (enabled)
> +# xen_platform_pci=1
> +
> +#-----------------------------------------------------------------------------
> +#   Configure passthrough PCI{,-X,e} devices:
> +#
> +#   pci=[ '[SSSS:]BB:DD.F[,option1[,option2[...]]]', ... ]
> +#
> +#   [SSSS]:BB:DD.F  "bus segment:bus:device.function"(1) of the device to
> +#                   be assigned, bus segment is optional. All fields are
> +#                   in hexadecimal and no field should be longer than that
> +#                   as shown in the pattern. Successful assignment may need
> +#                   certain hardware support and additional configurations
> +#                   (e.g. VT-d, see docs/misc/vtd.txt for more details).
> +#
> +#       (1) bus segment is sometimes also referred to as the PCI "domain",
> +#           not to be confused with Xen domain.
> +#
> +#
> +#   optionN         per-device options in "key=val" format. Current
> +#                   available options are:
> +#                   - msitranslate=0|1
> +#                      per-device overriden of pci_msitranslate, see below
> +#                   - power_mgmt=0|1
> +#                      per-device overriden of pci_power_mgmt, see below
> +#
> +# pci=[ '07:00.0', '07:00.1' ]
> +
> +#   MSI-INTx translation for MSI capable devices:
> +#
> +#   If it's set, Xen will enable MSI for the device that supports it even
> +# if the guest don't use MSI. In the case, an IO-APIC type interrupt will
> +# be injected to the guest every time a corresponding MSI message is
> +# received.
> +#   If the guest enables MSI or MSI-X, the translation is automatically
> +# turned off.
> +#
> +# pci_msitranslate=1
> +
> +# PCI Power Management:
> +#
> +# If it's set, the guest OS will be able to program D0-D3hot states of the
> +# PCI device for the purpose of low power consumption.
> +#
> +# pci_power_mgmt=0
> +
> +# Enable graphics passthrough:
> +#
> +# If it's set, and specify grapchis device BDF in pci passthrough option,
> +# like pci=['xx:xx.x'], it enables graphics passthrough, default=0 
> (disabled)
> +# gfx_passthru=0
> 
> 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] Add xl domUs default configuration file
  2011-06-06 11:25 Fabio Fantoni
@ 2011-06-21 17:10 ` Ian Jackson
  0 siblings, 0 replies; 10+ messages in thread
From: Ian Jackson @ 2011-06-21 17:10 UTC (permalink / raw)
  To: Fabio Fantoni; +Cc: xen-devel

Fabio Fantoni writes ("[Xen-devel] [PATCH] Add xl domUs default configuration file"):
> This patch add xl domUs default configuration file, must be improved and 
> implemented in the core xl.

Thanks.  But this file still contains a lot of things that ought never
to be specified in a global file.

Also, I don't think it's appropriate for this file to essentially be a
clone-and-hack of the example domain config file.  I think an
almost-empty placeholder would do fine.

Finally, having an example file of this kind is less important than
having the code to actually parse it.  We can't have an example file
which if you uncomment things has no effect, so we can't have this
file until the corresponding code is there.

Ian.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-06-21 17:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-06 11:28 [PATCH] Add xl domUs default configuration file Fabio Fantoni
2011-06-06 13:30 ` Stefano Stabellini
2011-06-06 14:06   ` Fabio Fantoni
2011-06-06 15:01   ` Ian Campbell
2011-06-06 15:14     ` Stefano Stabellini
2011-06-06 15:32       ` Ian Campbell
2011-06-08  8:57       ` Fabio Fantoni
2011-06-08  9:15         ` Ian Campbell
  -- strict thread matches above, loose matches on Subject: below --
2011-06-06 11:25 Fabio Fantoni
2011-06-21 17:10 ` Ian Jackson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).