From: Anthony Liguori <aliguori@us.ibm.com>
To: Glauber Costa <glommer@redhat.com>
Cc: qemu-devel@nongnu.org, Avi Kivity <avi@redhat.com>,
kvm-devel <kvm@vger.kernel.org>
Subject: Re: [PATCH 3/3] Add KVM support to QEMU
Date: Wed, 29 Oct 2008 14:01:40 -0500 [thread overview]
Message-ID: <4908B314.1030703@us.ibm.com> (raw)
In-Reply-To: <20081029174122.GE11532@poweredge.glommer>
Glauber Costa wrote:
> resending, now with less quoted text:
>
Yeah, I was intending to scold you about that ;-)
>> diff --git a/kvm-all.c b/kvm-all.c
>> new file mode 100644
>> index 0000000..4379071
>> --- /dev/null
>> +++ b/kvm-all.c
>> @@ -0,0 +1,377 @@
>> +/*
>> + * QEMU KVM support
>> + *
>> + * Copyright IBM, Corp. 2008
>> + *
>> + * Authors:
>> + * Anthony Liguori <aliguori@us.ibm.com>
>> + *
>> + * This work is licensed under the terms of the GNU GPL, version 2. See
>> + * the COPYING file in the top-level directory.
>> + *
>> + */
>> +
>> +#include <sys/types.h>
>> +#include <sys/ioctl.h>
>> +#include <sys/mman.h>
>> +
>> +#include <linux/kvm.h>
>> +
>> +#include "qemu-common.h"
>> +#include "sysemu.h"
>> +#include "kvm.h"
>> +
>> +//#define DEBUG_KVM
>> +
>> +#ifdef DEBUG_KVM
>> +#define dprintf(fmt, ...) \
>> + do { fprintf(stderr, fmt, ## __VA_ARGS__); } while (0)
>> +#else
>> +#define dprintf(fmt, ...) \
>> + do { } while (0)
>> +#endif
>> +
>> +typedef struct kvm_userspace_memory_region KVMSlot;
>>
>
> Actually, I don't think it is a good idea.
> We may want to keep internal-only data tied to the slot, such the slot's
> dirty bitmap if we do per-slot dirty tracking.
>
> Of course there may be other ways to do it, but this is the cleaner
> and more adequate since we're going through a fresh start.
>
For now, I think it's fine. Switching to making it a proper structure
is certainly a good idea when we get more stuff per slot.
Regards,
Anthony Liguori
WARNING: multiple messages have this Message-ID (diff)
From: Anthony Liguori <aliguori@us.ibm.com>
To: Glauber Costa <glommer@redhat.com>
Cc: qemu-devel@nongnu.org, kvm-devel <kvm@vger.kernel.org>,
Avi Kivity <avi@redhat.com>
Subject: [Qemu-devel] Re: [PATCH 3/3] Add KVM support to QEMU
Date: Wed, 29 Oct 2008 14:01:40 -0500 [thread overview]
Message-ID: <4908B314.1030703@us.ibm.com> (raw)
In-Reply-To: <20081029174122.GE11532@poweredge.glommer>
Glauber Costa wrote:
> resending, now with less quoted text:
>
Yeah, I was intending to scold you about that ;-)
>> diff --git a/kvm-all.c b/kvm-all.c
>> new file mode 100644
>> index 0000000..4379071
>> --- /dev/null
>> +++ b/kvm-all.c
>> @@ -0,0 +1,377 @@
>> +/*
>> + * QEMU KVM support
>> + *
>> + * Copyright IBM, Corp. 2008
>> + *
>> + * Authors:
>> + * Anthony Liguori <aliguori@us.ibm.com>
>> + *
>> + * This work is licensed under the terms of the GNU GPL, version 2. See
>> + * the COPYING file in the top-level directory.
>> + *
>> + */
>> +
>> +#include <sys/types.h>
>> +#include <sys/ioctl.h>
>> +#include <sys/mman.h>
>> +
>> +#include <linux/kvm.h>
>> +
>> +#include "qemu-common.h"
>> +#include "sysemu.h"
>> +#include "kvm.h"
>> +
>> +//#define DEBUG_KVM
>> +
>> +#ifdef DEBUG_KVM
>> +#define dprintf(fmt, ...) \
>> + do { fprintf(stderr, fmt, ## __VA_ARGS__); } while (0)
>> +#else
>> +#define dprintf(fmt, ...) \
>> + do { } while (0)
>> +#endif
>> +
>> +typedef struct kvm_userspace_memory_region KVMSlot;
>>
>
> Actually, I don't think it is a good idea.
> We may want to keep internal-only data tied to the slot, such the slot's
> dirty bitmap if we do per-slot dirty tracking.
>
> Of course there may be other ways to do it, but this is the cleaner
> and more adequate since we're going through a fresh start.
>
For now, I think it's fine. Switching to making it a proper structure
is certainly a good idea when we get more stuff per slot.
Regards,
Anthony Liguori
next prev parent reply other threads:[~2008-10-29 19:01 UTC|newest]
Thread overview: 63+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-28 20:13 [PATCH 1/3] Add additional CPU flag definitions Anthony Liguori
2008-10-28 20:13 ` [Qemu-devel] " Anthony Liguori
2008-10-28 20:13 ` [PATCH 2/3] Split CPUID from op_helper Anthony Liguori
2008-10-28 20:13 ` [Qemu-devel] " Anthony Liguori
2008-10-28 20:13 ` [PATCH 3/3] Add KVM support to QEMU Anthony Liguori
2008-10-28 20:13 ` [Qemu-devel] " Anthony Liguori
2008-10-28 20:49 ` Hollis Blanchard
2008-10-28 20:49 ` Hollis Blanchard
2008-10-28 20:49 ` Hollis Blanchard
[not found] ` <fb412d760810281349q2572acf0j4a3f5eff9e8a55a4-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-10-28 21:10 ` Anthony Liguori
2008-10-28 21:10 ` Anthony Liguori
2008-10-28 21:10 ` Anthony Liguori
2008-10-28 20:57 ` Andreas Färber
2008-10-28 21:04 ` Glauber Costa
2008-10-28 21:16 ` Anthony Liguori
2008-10-28 21:05 ` Anthony Liguori
2008-11-04 13:25 ` Avi Kivity
2008-10-28 21:41 ` Gerd Hoffmann
2008-10-28 21:41 ` [Qemu-devel] " Gerd Hoffmann
2008-10-28 21:51 ` Anthony Liguori
2008-10-28 21:51 ` [Qemu-devel] " Anthony Liguori
2008-10-28 23:04 ` Glauber Costa
2008-10-28 23:04 ` Glauber Costa
2008-10-28 23:36 ` Anthony Liguori
2008-10-28 23:36 ` Anthony Liguori
2008-10-29 9:54 ` Avi Kivity
2008-10-29 9:54 ` Avi Kivity
2008-10-29 12:35 ` Glauber Costa
2008-10-29 12:35 ` Glauber Costa
2008-10-29 12:39 ` Avi Kivity
2008-10-29 12:39 ` Avi Kivity
2008-10-29 12:56 ` Glauber Costa
2008-10-29 12:56 ` Glauber Costa
2008-10-29 13:07 ` Anthony Liguori
2008-10-29 13:07 ` Anthony Liguori
2008-10-29 13:23 ` Avi Kivity
2008-10-29 13:23 ` Avi Kivity
2008-10-29 13:32 ` Anthony Liguori
2008-10-29 13:32 ` Anthony Liguori
2008-10-29 13:51 ` Hollis Blanchard
2008-10-29 14:09 ` Avi Kivity
2008-10-29 14:09 ` Avi Kivity
2008-10-29 14:16 ` Fabrice Bellard
2008-10-29 14:16 ` [Qemu-devel] " Fabrice Bellard
2008-10-29 14:23 ` Anthony Liguori
2008-10-29 19:13 ` Blue Swirl
2008-10-29 19:13 ` Blue Swirl
2008-11-01 16:25 ` Blue Swirl
2008-11-01 16:25 ` Blue Swirl
2008-10-29 14:58 ` Glauber Costa
2008-10-29 14:58 ` [Qemu-devel] " Glauber Costa
2008-10-29 17:41 ` Glauber Costa
2008-10-29 17:41 ` [Qemu-devel] " Glauber Costa
2008-10-29 19:01 ` Anthony Liguori [this message]
2008-10-29 19:01 ` Anthony Liguori
2008-11-04 13:24 ` Avi Kivity
2008-11-04 13:24 ` [Qemu-devel] " Avi Kivity
2008-11-04 14:02 ` Anthony Liguori
2008-11-04 14:02 ` [Qemu-devel] " Anthony Liguori
2008-11-04 14:46 ` Avi Kivity
2008-11-04 14:46 ` [Qemu-devel] " Avi Kivity
2008-11-04 14:50 ` Anthony Liguori
2008-11-04 14:50 ` [Qemu-devel] " 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=4908B314.1030703@us.ibm.com \
--to=aliguori@us.ibm.com \
--cc=avi@redhat.com \
--cc=glommer@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=qemu-devel@nongnu.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.