[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH 3/3] Add KVM support to QEMU
From: |
Glauber Costa |
Subject: |
[Qemu-devel] Re: [PATCH 3/3] Add KVM support to QEMU |
Date: |
Wed, 29 Oct 2008 15:41:22 -0200 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
resending, now with less quoted text:
> 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 <address@hidden>
> + *
> + * 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.
- Re: [Qemu-devel] Re: [PATCH 3/3] Add KVM support to QEMU, (continued)
- Re: [Qemu-devel] Re: [PATCH 3/3] Add KVM support to QEMU, Hollis Blanchard, 2008/10/30
- Re: [Qemu-devel] Re: [PATCH 3/3] Add KVM support to QEMU, Avi Kivity, 2008/10/29
- Re: [Qemu-devel] Re: [PATCH 3/3] Add KVM support to QEMU, Fabrice Bellard, 2008/10/29
- Re: [Qemu-devel] Re: [PATCH 3/3] Add KVM support to QEMU, Anthony Liguori, 2008/10/29
- Re: [Qemu-devel] Re: [PATCH 3/3] Add KVM support to QEMU, Blue Swirl, 2008/10/29
- [Qemu-devel] Re: [PATCH 3/3] Add KVM support to QEMU, Glauber Costa, 2008/10/29
- [Qemu-devel] Re: [PATCH 3/3] Add KVM support to QEMU,
Glauber Costa <=
- [Qemu-devel] Re: [PATCH 3/3] Add KVM support to QEMU, Anthony Liguori, 2008/10/29