[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC][PATCH 02/16] kvm: Move kvmclock into hw/kvm folde
From: |
Andreas Färber |
Subject: |
Re: [Qemu-devel] [RFC][PATCH 02/16] kvm: Move kvmclock into hw/kvm folder |
Date: |
Sat, 03 Dec 2011 20:00:05 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111105 Thunderbird/8.0 |
Am 03.12.2011 12:17, schrieb Jan Kiszka:
> From: Jan Kiszka <address@hidden>
>
> More KVM-specific devices will come, so let's start with moving the
> kvmclock into a dedicated folder.
>
> Signed-off-by: Jan Kiszka <address@hidden>
> ---
> diff --git a/Makefile.target b/Makefile.target
> index 1e90df7..3a9e95d 100644
> --- a/Makefile.target
> +++ b/Makefile.target
> @@ -231,7 +231,7 @@ obj-i386-y += vmport.o
> obj-i386-y += device-hotplug.o pci-hotplug.o smbios.o wdt_ib700.o
> obj-i386-y += debugcon.o multiboot.o
> obj-i386-y += pc_piix.o
> -obj-i386-$(CONFIG_KVM) += kvmclock.o
> +obj-i386-$(CONFIG_KVM) += kvm/clock.o
> obj-i386-$(CONFIG_SPICE) += qxl.o qxl-logger.o qxl-render.o
>
> # shared objects
> diff --git a/hw/kvmclock.c b/hw/kvm/clock.c
> similarity index 96%
> rename from hw/kvmclock.c
> rename to hw/kvm/clock.c
> index 5388bc4..aa37c5d 100644
> --- a/hw/kvmclock.c
> +++ b/hw/kvm/clock.c
> @@ -11,11 +11,11 @@
> *
> */
>
> -#include "qemu-common.h"
> -#include "sysemu.h"
> -#include "sysbus.h"
> -#include "kvm.h"
> -#include "kvmclock.h"
> +#include <qemu-common.h>
> +#include <sysemu.h>
> +#include <kvm.h>
> +#include <hw/sysbus.h>
> +#include <hw/kvm/clock.h>
>
> #include <linux/kvm.h>
> #include <linux/kvm_para.h>
Please don't start using system includes for everything. Rather extend
QEMU_CFLAGS to contain the right user include path(s).
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
- Re: [Qemu-devel] [RFC][PATCH 01/16] msi: Generalize msix_supported to msi_supported, (continued)
[Qemu-devel] [RFC][PATCH 10/16] memory: Introduce memory_region_init_reservation, Jan Kiszka, 2011/12/03
[Qemu-devel] [RFC][PATCH 05/16] apic: Open-code timer save/restore, Jan Kiszka, 2011/12/03
[Qemu-devel] [RFC][PATCH 02/16] kvm: Move kvmclock into hw/kvm folder, Jan Kiszka, 2011/12/03
[Qemu-devel] [RFC][PATCH 08/16] ioapic: Reject non-dword accesses to IOWIN register, Jan Kiszka, 2011/12/03
[Qemu-devel] [RFC][PATCH 11/16] kvm: Introduce core services for in-kernel irqchip support, Jan Kiszka, 2011/12/03