]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: Move PORT definitions to qemu_conf.c
authorCole Robinson <crobinso@redhat.com>
Wed, 10 Feb 2016 14:43:57 +0000 (09:43 -0500)
committerCole Robinson <crobinso@redhat.com>
Wed, 17 Feb 2016 16:07:21 +0000 (11:07 -0500)
Which is the only user. That was the only reason for including
qemu_command.h, though we need to explicitly include qemu_domain.h
afterwards.

src/qemu/qemu_command.h
src/qemu/qemu_conf.c

index 776954e5f521211920d9bb6df6de31fb1104044b..fb684d0a069ba09f7af8af6f27f0031793f5e9e3 100644 (file)
 # define QEMU_DRIVE_HOST_PREFIX "drive-"
 # define QEMU_FSDEV_HOST_PREFIX "fsdev-"
 
-/* These are only defaults, they can be changed now in qemu.conf and
- * explicitly specified port is checked against these two (makes
- * sense to limit the values).
- *
- * This limitation is mentioned in qemu.conf, so bear in mind that the
- * configuration file should reflect any changes made to these values.
- */
-# define QEMU_REMOTE_PORT_MIN  5900
-# define QEMU_REMOTE_PORT_MAX  65535
-
-# define QEMU_WEBSOCKET_PORT_MIN  5700
-# define QEMU_WEBSOCKET_PORT_MAX  65535
-
-# define QEMU_MIGRATION_PORT_MIN 49152
-# define QEMU_MIGRATION_PORT_MAX 49215
-
 VIR_ENUM_DECL(qemuVideo)
 
 typedef struct _qemuBuildCommandLineCallbacks qemuBuildCommandLineCallbacks;
index 14683f5c8ac560a22c1b0e8e06043dd879b5c405..77ef4fe3ad229cec50a98a8b58afe345c176a398 100644 (file)
@@ -36,8 +36,8 @@
 
 #include "virerror.h"
 #include "qemu_conf.h"
-#include "qemu_command.h"
 #include "qemu_capabilities.h"
+#include "qemu_domain.h"
 #include "viruuid.h"
 #include "virbuffer.h"
 #include "virconf.h"
 
 VIR_LOG_INIT("qemu.qemu_conf");
 
+/* These are only defaults, they can be changed now in qemu.conf and
+ * explicitly specified port is checked against these two (makes
+ * sense to limit the values).
+ *
+ * This limitation is mentioned in qemu.conf, so bear in mind that the
+ * configuration file should reflect any changes made to these values.
+ */
+#define QEMU_REMOTE_PORT_MIN 5900
+#define QEMU_REMOTE_PORT_MAX 65535
+
+#define QEMU_WEBSOCKET_PORT_MIN 5700
+#define QEMU_WEBSOCKET_PORT_MAX 65535
+
+#define QEMU_MIGRATION_PORT_MIN 49152
+#define QEMU_MIGRATION_PORT_MAX 49215
+
 static virClassPtr virQEMUDriverConfigClass;
 static void virQEMUDriverConfigDispose(void *obj);