[PATCH 05/10] ch: add scaffolding for host devices management

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Wei Liu <liuwe@xxxxxxxxxxxxx>

They are left empty for now. Make sure CH driver still builds. Content
will be filled in later.

Signed-off-by: Wei Liu <liuwe@xxxxxxxxxxxxx>
Signed-off-by: Praveen K Paladugu <prapal@xxxxxxxxxxxxxxxxxxx>
---
 src/ch/ch_hostdev.c | 28 ++++++++++++++++++++++++++++
 src/ch/ch_hostdev.h | 24 ++++++++++++++++++++++++
 src/ch/meson.build  |  2 ++
 3 files changed, 54 insertions(+)
 create mode 100644 src/ch/ch_hostdev.c
 create mode 100644 src/ch/ch_hostdev.h

diff --git a/src/ch/ch_hostdev.c b/src/ch/ch_hostdev.c
new file mode 100644
index 0000000000..20ce6efa10
--- /dev/null
+++ b/src/ch/ch_hostdev.c
@@ -0,0 +1,28 @@
+/*
+ * ch_hostdev.c: Cloud Hypervisor hostdev management
+ *
+ * Copyright (C) 2021 Wei Liu <liuwe@xxxxxxxxxxxxx>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library.  If not, see
+ * <http://www.gnu.org/licenses/>.
+ */
+
+#include <config.h>
+
+#include "ch_hostdev.h"
+#include "virlog.h"
+
+#define VIR_FROM_THIS VIR_FROM_CH
+
+VIR_LOG_INIT("ch.ch_hostdev");
diff --git a/src/ch/ch_hostdev.h b/src/ch/ch_hostdev.h
new file mode 100644
index 0000000000..02b7f9c2d8
--- /dev/null
+++ b/src/ch/ch_hostdev.h
@@ -0,0 +1,24 @@
+/*
+ * ch_hostdev.h: Cloud Hypervisor hostdev management
+ *
+ * Copyright (C) 2021 Wei Liu <liuwe@xxxxxxxxxxxxx>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library.  If not, see
+ * <http://www.gnu.org/licenses/>.
+ */
+
+#pragma once
+
+#include "ch_conf.h"
+#include "domain_conf.h"
diff --git a/src/ch/meson.build b/src/ch/meson.build
index 633966aac7..ca1291c158 100644
--- a/src/ch/meson.build
+++ b/src/ch/meson.build
@@ -13,6 +13,8 @@ ch_driver_sources = [
   'ch_monitor.h',
   'ch_process.c',
   'ch_process.h',
+  'ch_hostdev.c',
+  'ch_hostdev.h',
 ]
 
 driver_source_files += files(ch_driver_sources)
-- 
2.44.0



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux