[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [QEMU][RFC V2 08/10] xen: audio is not a part of defaul
From: |
Stefano Stabellini |
Subject: |
Re: [Qemu-devel] [QEMU][RFC V2 08/10] xen: audio is not a part of default devices |
Date: |
Thu, 23 Aug 2012 15:42:38 +0100 |
User-agent: |
Alpine 2.02 (DEB 1266 2009-07-14) |
On Wed, 22 Aug 2012, Julien Grall wrote:
> Signed-off-by: Julien Grall <address@hidden>
> ---
> arch_init.c | 6 ++++++
> 1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/arch_init.c b/arch_init.c
> index 9b46bfc..1077b16 100644
> --- a/arch_init.c
> +++ b/arch_init.c
> @@ -44,6 +44,7 @@
> #include "exec-memory.h"
> #include "hw/pcspk.h"
> #include "qemu/page_cache.h"
> +#include "hw/xen.h"
>
> #ifdef DEBUG_ARCH_INIT
> #define DPRINTF(fmt, ...) \
> @@ -976,6 +977,9 @@ void select_soundhw(const char *optarg)
> void audio_init(ISABus *isa_bus, PCIBus *pci_bus)
> {
> struct soundhw *c;
> + int register_default_dev;
> +
> + xen_set_register_default_dev(0, ®ister_default_dev);
>
> for (c = soundhw; c->name; ++c) {
> if (c->enabled) {
> @@ -990,6 +994,8 @@ void audio_init(ISABus *isa_bus, PCIBus *pci_bus)
> }
> }
> }
> +
> + xen_set_register_default_dev(register_default_dev, NULL);
> }
> #else
> void select_soundhw(const char *optarg)
and this is why it is better to have a list rather than a stateful
register_default_dev integer.
This stuff is really easy to break.
- [Qemu-devel] [QEMU][RFC V2 00/10] QEMU disaggregation in Xen environment., Julien Grall, 2012/08/22
- [Qemu-devel] [QEMU][RFC V2 01/10] xen: add new machine options to support QEMU disaggregation in Xen environment, Julien Grall, 2012/08/22
- [Qemu-devel] [QEMU][RFC V2 03/10] xen: add wrappers for new Xen disaggregation hypercalls, Julien Grall, 2012/08/22
- [Qemu-devel] [QEMU][RFC V2 04/10] xen-hvm: register qemu as ioreq server and retrieve shared pages, Julien Grall, 2012/08/22
- [Qemu-devel] [QEMU][RFC V2 08/10] xen: audio is not a part of default devices, Julien Grall, 2012/08/22
- Re: [Qemu-devel] [QEMU][RFC V2 08/10] xen: audio is not a part of default devices,
Stefano Stabellini <=
- [Qemu-devel] [QEMU][RFC V2 06/10] xen-pci: register PCI device in Xen and handle IOREQ_TYPE_PCI_CONFIG, Julien Grall, 2012/08/22
- [Qemu-devel] [QEMU][RFC V2 09/10] xen-memory: handle node "device_model" for physical mapping, Julien Grall, 2012/08/22
- [Qemu-devel] [QEMU][RFC V2 02/10] xen: modify QEMU status path in XenStore, Julien Grall, 2012/08/22
- [Qemu-devel] [QEMU][RFC V2 05/10] xen-memory: register memory/IO range in Xen, Julien Grall, 2012/08/22
- [Qemu-devel] [QEMU][RFC V2 07/10] xen: specify which device is part of default devices, Julien Grall, 2012/08/22