From: Kevin Wolf <kwolf@redhat.com>
To: Alexander Graf <agraf@suse.de>
Cc: Anthony.Perard@citrix.com,
Xen Devel <xen-devel@lists.xensource.com>,
QEMU-devel <qemu-devel@nongnu.org>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: Re: [Qemu-devel] [PATCH V6 03/15] xen: Add xen_machine_fv
Date: Mon, 15 Nov 2010 12:00:01 +0100 [thread overview]
Message-ID: <4CE112B1.5020302@redhat.com> (raw)
In-Reply-To: <5D716516-7D36-4FCC-9320-AD8459F7EEBF@suse.de>
Am 15.11.2010 11:35, schrieb Alexander Graf:
>
> On 21.10.2010, at 19:36, Anthony.Perard@citrix.com wrote:
>
>> From: Anthony PERARD <anthony.perard@citrix.com>
>>
>> Add the Xen FV (Fully Virtualized) machine to Qemu;
>> this is groundwork to add Xen device model support in Qemu.
>>
>> Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
>> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
>> ---
>> Makefile.target | 3 +
>> hw/xen_common.h | 5 ++
>> hw/xen_machine_fv.c | 158 +++++++++++++++++++++++++++++++++++++++++++++++++++
>> 3 files changed, 166 insertions(+), 0 deletions(-)
>> create mode 100644 hw/xen_machine_fv.c
>>
>> diff --git a/Makefile.target b/Makefile.target
>> index c48cbcc..ddabc8a 100644
>> --- a/Makefile.target
>> +++ b/Makefile.target
>> @@ -185,6 +185,9 @@ QEMU_CFLAGS += $(VNC_PNG_CFLAGS)
>> # xen backend driver support
>> obj-$(CONFIG_XEN) += xen_machine_pv.o xen_domainbuild.o
>>
>> +# xen full virtualized machine
>> +obj-i386-$(CONFIG_XEN) += xen_machine_fv.o
>> +
>> # USB layer
>> obj-$(CONFIG_USB_OHCI) += usb-ohci.o
>>
>> diff --git a/hw/xen_common.h b/hw/xen_common.h
>> index 9f75e52..4c0f97d 100644
>> --- a/hw/xen_common.h
>> +++ b/hw/xen_common.h
>> @@ -18,6 +18,11 @@
>> * We don't support Xen prior to 3.3.0.
>> */
>>
>> +/* Before Xen 4.0.0 */
>> +#if CONFIG_XEN_CTRL_INTERFACE_VERSION < 400
>> +# define HVM_MAX_VCPUS 32
>> +#endif
>> +
>> /* Xen unstable */
>> #if CONFIG_XEN_CTRL_INTERFACE_VERSION < 410
>> typedef int qemu_xc_interface;
>> diff --git a/hw/xen_machine_fv.c b/hw/xen_machine_fv.c
>> new file mode 100644
>> index 0000000..260cda3
>> --- /dev/null
>> +++ b/hw/xen_machine_fv.c
>> @@ -0,0 +1,158 @@
>> +/*
>> + * QEMU Xen FV Machine
>> + *
>> + * Copyright (c) 2003-2007 Fabrice Bellard
>> + * Copyright (c) 2007 Red Hat
>
> Shouldn't there be Citrix in there?
>
>> + *
>> + * Permission is hereby granted, free of charge, to any person obtaining a copy
>> + * of this software and associated documentation files (the "Software"), to deal
>> + * in the Software without restriction, including without limitation the rights
>> + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
>> + * copies of the Software, and to permit persons to whom the Software is
>> + * furnished to do so, subject to the following conditions:
>> + *
>> + * The above copyright notice and this permission notice shall be included in
>> + * all copies or substantial portions of the Software.
>> + *
>> + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
>> + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
>> + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
>> + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
>> + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
>> + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
>> + * THE SOFTWARE.
>
> So all this code has always been public domain? There are no GPL'ed pieces in there?
Public domain is something entirely different. This is just a permissive
license, and it's used a lot throughout qemu. So as you state that this
file is mostly a copy of pc.c which uses this license, at least for the
copied part it's not only okay, but even required to use the same
license here.
Kevin
next prev parent reply other threads:[~2010-11-15 10:59 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-21 17:36 [Qemu-devel] [PATCH V6 00/15] xen device model support anthony.perard
2010-10-21 17:36 ` [Qemu-devel] [PATCH V6 01/15] xen: Replace some tab-indents with spaces (clean-up) anthony.perard
2010-10-21 17:36 ` [Qemu-devel] [PATCH V6 02/15] xen: Support new libxc calls from xen unstable anthony.perard
2010-11-15 10:25 ` Alexander Graf
2010-11-15 13:57 ` Stefano Stabellini
2010-10-21 17:36 ` [Qemu-devel] [PATCH V6 03/15] xen: Add xen_machine_fv anthony.perard
2010-11-15 10:35 ` Alexander Graf
2010-11-15 11:00 ` Kevin Wolf [this message]
2010-11-15 13:57 ` Stefano Stabellini
2010-10-21 17:36 ` [Qemu-devel] [PATCH V6 04/15] Introduce -accel command option anthony.perard
2010-11-15 10:38 ` Alexander Graf
2010-11-15 10:46 ` Alexander Graf
2010-11-15 12:56 ` Paolo Bonzini
2010-11-15 14:27 ` Anthony PERARD
2010-11-15 14:47 ` Anthony PERARD
2010-11-15 14:51 ` Alexander Graf
2010-10-21 17:36 ` [Qemu-devel] [PATCH V6 05/15] xen: Add xen in -accel option anthony.perard
2010-11-15 10:49 ` Alexander Graf
2010-10-21 17:36 ` [Qemu-devel] [PATCH V6 06/15] xen: Add the Xen platform pci device anthony.perard
2010-11-15 10:57 ` Alexander Graf
2010-10-21 17:36 ` [Qemu-devel] [PATCH V6 07/15] piix_pci: Introduces Xen specific call for irq anthony.perard
2010-10-21 17:36 ` [Qemu-devel] [PATCH V6 08/15] xen: add a 8259 Interrupt Controller anthony.perard
2010-10-21 17:36 ` [Qemu-devel] [PATCH V6 09/15] xen: Introduce the Xen mapcache anthony.perard
2010-11-15 11:43 ` Alexander Graf
2010-10-21 17:36 ` [Qemu-devel] [PATCH V6 10/15] configure: Always use 64bits target physical addresses with xen enabled anthony.perard
2010-10-21 17:36 ` [Qemu-devel] [PATCH V6 11/15] Introduce qemu_ram_ptr_unlock anthony.perard
2010-10-21 17:36 ` [Qemu-devel] [PATCH V6 12/15] vl.c: Introduce getter for shutdown_requested and reset_requested anthony.perard
2010-10-21 17:36 ` [Qemu-devel] [PATCH V6 13/15] xen: Initialize event channels and io rings anthony.perard
2010-10-21 17:36 ` [Qemu-devel] [PATCH V6 14/15] xen: Set running state in xenstore anthony.perard
2010-10-21 17:36 ` [Qemu-devel] [PATCH V6 15/15] acpi-piix4: Add Xen hypercall for sleep state anthony.perard
2010-10-26 14:24 ` [Qemu-devel] Re: [PATCH V6 00/15] xen device model support Anthony PERARD
2010-10-26 19:29 ` Blue Swirl
2010-10-26 20:00 ` Anthony Liguori
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CE112B1.5020302@redhat.com \
--to=kwolf@redhat.com \
--cc=Anthony.Perard@citrix.com \
--cc=agraf@suse.de \
--cc=qemu-devel@nongnu.org \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).