diff mbox

[QEMU,RFC,V2,01/10] xen: add new machine options to support QEMU disaggregation in Xen environment

Message ID bd5dc1c039b5b6d30ac785630677ad3339039f6b.1345637459.git.julien.grall@citrix.com
State New
Headers show

Commit Message

Julien Grall Aug. 22, 2012, 12:30 p.m. UTC
- xen_dmid: specify the id of QEMU. It will be used to
    retrieve/store information inside XenStore.
    - xen_default_dev (on/off): as default devices need to be create in
    each QEMU (due to code dependency), this option specifies if it will
    register range/PCI of default device via xen hypercall.
    (Root bridge, south bridge, ...).
    - xen_emulate_ide (on/off): enable/disable emulation in QEMU.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
---
 qemu-config.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

Comments

Stefano Stabellini Aug. 23, 2012, 2:40 p.m. UTC | #1
On Wed, 22 Aug 2012, Julien Grall wrote:
>     - xen_dmid: specify the id of QEMU. It will be used to
>     retrieve/store information inside XenStore.
>     - xen_default_dev (on/off): as default devices need to be create in
>     each QEMU (due to code dependency), this option specifies if it will
>     register range/PCI of default device via xen hypercall.
>     (Root bridge, south bridge, ...).
>     - xen_emulate_ide (on/off): enable/disable emulation in QEMU.
> 
> Signed-off-by: Julien Grall <julien.grall@citrix.com>
> ---
>  qemu-config.c |   12 ++++++++++++
>  1 files changed, 12 insertions(+), 0 deletions(-)
> 
> diff --git a/qemu-config.c b/qemu-config.c
> index c05ffbc..7740442 100644
> --- a/qemu-config.c
> +++ b/qemu-config.c
> @@ -612,6 +612,18 @@ static QemuOptsList qemu_machine_opts = {
>              .name = "dump-guest-core",
>              .type = QEMU_OPT_BOOL,
>              .help = "Include guest memory in  a core dump",
> +        }, {
> +            .name = "xen_dmid",
> +            .type = QEMU_OPT_NUMBER,
> +            .help = "Xen device model id",
> +        }, {
> +            .name = "xen_default_dev",
> +            .type = QEMU_OPT_BOOL,
> +            .help = "emulate Xen default device (South Bridge, IDE, ...)"
                                                ^devices
It would be good to document exactly which ones are these (the default
devices)

> +        }, {
> +            .name = "xen_emulate_ide",
> +            .type = QEMU_OPT_BOOL,
> +            .help = "emulate IDE with XEN"
>          },

Is this really a Xen specific option? Couldn't be used for example by
people that wants to use virtio-scsi on KVM without IDE emulation?


>          { /* End of list */ }
>      },
> -- 
> Julien Grall
>
diff mbox

Patch

diff --git a/qemu-config.c b/qemu-config.c
index c05ffbc..7740442 100644
--- a/qemu-config.c
+++ b/qemu-config.c
@@ -612,6 +612,18 @@  static QemuOptsList qemu_machine_opts = {
             .name = "dump-guest-core",
             .type = QEMU_OPT_BOOL,
             .help = "Include guest memory in  a core dump",
+        }, {
+            .name = "xen_dmid",
+            .type = QEMU_OPT_NUMBER,
+            .help = "Xen device model id",
+        }, {
+            .name = "xen_default_dev",
+            .type = QEMU_OPT_BOOL,
+            .help = "emulate Xen default device (South Bridge, IDE, ...)"
+        }, {
+            .name = "xen_emulate_ide",
+            .type = QEMU_OPT_BOOL,
+            .help = "emulate IDE with XEN"
         },
         { /* End of list */ }
     },