* [Qemu-devel] [PATCH v2 0/2] qemu-ga: change default state dir to /var/run @ 2012-10-03 21:35 Luiz Capitulino 2012-10-03 21:35 ` [Qemu-devel] [PATCH 1/2] configure: add --localstatedir Luiz Capitulino ` (2 more replies) 0 siblings, 3 replies; 10+ messages in thread From: Luiz Capitulino @ 2012-10-03 21:35 UTC (permalink / raw) To: mdroth; +Cc: pbonzini, qemu-devel Also allow users to change the default at configure time. Please, check individual patches for more details. o v2 - drop --guest-agent-statedir in favor of --localstatedir - change default from /var/run to ${prefix}/var/run Luiz Capitulino (2): configure: add --localstatedir qemu-ga: use state dir from CONFIG_QEMU_LOCALSTATEDIR configure | 9 ++++++++- qemu-ga.c | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) -- 1.7.12.315.g682ce8b ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Qemu-devel] [PATCH 1/2] configure: add --localstatedir 2012-10-03 21:35 [Qemu-devel] [PATCH v2 0/2] qemu-ga: change default state dir to /var/run Luiz Capitulino @ 2012-10-03 21:35 ` Luiz Capitulino 2012-10-04 15:39 ` Michael Roth 2012-10-03 21:35 ` [Qemu-devel] [PATCH 2/2] qemu-ga: use state dir from CONFIG_QEMU_LOCALSTATEDIR Luiz Capitulino 2012-10-04 7:07 ` [Qemu-devel] [PATCH v2 0/2] qemu-ga: change default state dir to /var/run Paolo Bonzini 2 siblings, 1 reply; 10+ messages in thread From: Luiz Capitulino @ 2012-10-03 21:35 UTC (permalink / raw) To: mdroth; +Cc: pbonzini, qemu-devel Next commit wants to use it. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> --- configure | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 8f99b7b..dab07d6 100755 --- a/configure +++ b/configure @@ -184,6 +184,7 @@ libdir="\${prefix}/lib" libexecdir="\${prefix}/libexec" includedir="\${prefix}/include" sysconfdir="\${prefix}/etc" +local_statedir="\${prefix}/var" confsuffix="/qemu" slirp="yes" fmod_lib="" @@ -552,6 +553,7 @@ EOF qemu_docdir="\${prefix}" bindir="\${prefix}" sysconfdir="\${prefix}" + local_statedir="\${prefix}" confsuffix="" libs_qga="-lws2_32 -lwinmm -lpowrprof $libs_qga" fi @@ -628,7 +630,9 @@ for opt do ;; --sysconfdir=*) sysconfdir="$optarg" ;; - --sbindir=*|--sharedstatedir=*|--localstatedir=*|\ + --localstatedir=*) local_statedir="$optarg" + ;; + --sbindir=*|--sharedstatedir=*|\ --oldincludedir=*|--datarootdir=*|--infodir=*|--localedir=*|\ --htmldir=*|--dvidir=*|--pdfdir=*|--psdir=*) # These switches are silently ignored, for compatibility with @@ -1022,6 +1026,7 @@ echo " --datadir=PATH install firmware in PATH$confsuffix" echo " --docdir=PATH install documentation in PATH$confsuffix" echo " --bindir=PATH install binaries in PATH" echo " --sysconfdir=PATH install config in PATH$confsuffix" +echo " --localstatedir=PATH install local state in PATH" echo " --with-confsuffix=SUFFIX suffix for QEMU data inside datadir and sysconfdir [$confsuffix]" echo " --enable-debug-tcg enable TCG debugging" echo " --disable-debug-tcg disable TCG debugging (default)" @@ -3086,6 +3091,7 @@ echo "library directory `eval echo $libdir`" echo "libexec directory `eval echo $libexecdir`" echo "include directory `eval echo $includedir`" echo "config directory `eval echo $sysconfdir`" +echo "local state directory `eval echo $local_statedir`" if test "$mingw32" = "no" ; then echo "Manual directory `eval echo $mandir`" echo "ELF interp prefix $interp_prefix" @@ -3194,6 +3200,7 @@ echo "sysconfdir=$sysconfdir" >> $config_host_mak echo "qemu_confdir=$qemu_confdir" >> $config_host_mak echo "qemu_datadir=$qemu_datadir" >> $config_host_mak echo "qemu_docdir=$qemu_docdir" >> $config_host_mak +echo "qemu_localstatedir=$local_statedir" >> $config_host_mak echo "CONFIG_QEMU_HELPERDIR=\"$libexecdir\"" >> $config_host_mak echo "ARCH=$ARCH" >> $config_host_mak -- 1.7.12.315.g682ce8b ^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [Qemu-devel] [PATCH 1/2] configure: add --localstatedir 2012-10-03 21:35 ` [Qemu-devel] [PATCH 1/2] configure: add --localstatedir Luiz Capitulino @ 2012-10-04 15:39 ` Michael Roth 0 siblings, 0 replies; 10+ messages in thread From: Michael Roth @ 2012-10-04 15:39 UTC (permalink / raw) To: Luiz Capitulino; +Cc: pbonzini, qemu-devel On Wed, Oct 03, 2012 at 06:35:57PM -0300, Luiz Capitulino wrote: > Next commit wants to use it. > > Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com> > --- > configure | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > > diff --git a/configure b/configure > index 8f99b7b..dab07d6 100755 > --- a/configure > +++ b/configure > @@ -184,6 +184,7 @@ libdir="\${prefix}/lib" > libexecdir="\${prefix}/libexec" > includedir="\${prefix}/include" > sysconfdir="\${prefix}/etc" > +local_statedir="\${prefix}/var" > confsuffix="/qemu" > slirp="yes" > fmod_lib="" > @@ -552,6 +553,7 @@ EOF > qemu_docdir="\${prefix}" > bindir="\${prefix}" > sysconfdir="\${prefix}" > + local_statedir="\${prefix}" > confsuffix="" > libs_qga="-lws2_32 -lwinmm -lpowrprof $libs_qga" > fi > @@ -628,7 +630,9 @@ for opt do > ;; > --sysconfdir=*) sysconfdir="$optarg" > ;; > - --sbindir=*|--sharedstatedir=*|--localstatedir=*|\ > + --localstatedir=*) local_statedir="$optarg" > + ;; > + --sbindir=*|--sharedstatedir=*|\ > --oldincludedir=*|--datarootdir=*|--infodir=*|--localedir=*|\ > --htmldir=*|--dvidir=*|--pdfdir=*|--psdir=*) > # These switches are silently ignored, for compatibility with > @@ -1022,6 +1026,7 @@ echo " --datadir=PATH install firmware in PATH$confsuffix" > echo " --docdir=PATH install documentation in PATH$confsuffix" > echo " --bindir=PATH install binaries in PATH" > echo " --sysconfdir=PATH install config in PATH$confsuffix" > +echo " --localstatedir=PATH install local state in PATH" > echo " --with-confsuffix=SUFFIX suffix for QEMU data inside datadir and sysconfdir [$confsuffix]" > echo " --enable-debug-tcg enable TCG debugging" > echo " --disable-debug-tcg disable TCG debugging (default)" > @@ -3086,6 +3091,7 @@ echo "library directory `eval echo $libdir`" > echo "libexec directory `eval echo $libexecdir`" > echo "include directory `eval echo $includedir`" > echo "config directory `eval echo $sysconfdir`" > +echo "local state directory `eval echo $local_statedir`" > if test "$mingw32" = "no" ; then > echo "Manual directory `eval echo $mandir`" > echo "ELF interp prefix $interp_prefix" > @@ -3194,6 +3200,7 @@ echo "sysconfdir=$sysconfdir" >> $config_host_mak > echo "qemu_confdir=$qemu_confdir" >> $config_host_mak > echo "qemu_datadir=$qemu_datadir" >> $config_host_mak > echo "qemu_docdir=$qemu_docdir" >> $config_host_mak > +echo "qemu_localstatedir=$local_statedir" >> $config_host_mak > echo "CONFIG_QEMU_HELPERDIR=\"$libexecdir\"" >> $config_host_mak > > echo "ARCH=$ARCH" >> $config_host_mak > -- > 1.7.12.315.g682ce8b > ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Qemu-devel] [PATCH 2/2] qemu-ga: use state dir from CONFIG_QEMU_LOCALSTATEDIR 2012-10-03 21:35 [Qemu-devel] [PATCH v2 0/2] qemu-ga: change default state dir to /var/run Luiz Capitulino 2012-10-03 21:35 ` [Qemu-devel] [PATCH 1/2] configure: add --localstatedir Luiz Capitulino @ 2012-10-03 21:35 ` Luiz Capitulino 2012-10-04 15:47 ` Michael Roth 2012-10-04 7:07 ` [Qemu-devel] [PATCH v2 0/2] qemu-ga: change default state dir to /var/run Paolo Bonzini 2 siblings, 1 reply; 10+ messages in thread From: Luiz Capitulino @ 2012-10-03 21:35 UTC (permalink / raw) To: mdroth; +Cc: pbonzini, qemu-devel Has the side effect of changing the default directory used to save the freeze status file from /tmp to ${prefix}/var/run. This is a beneficial change for two reasons: 1. FHS states that programs must not assume that files in /tmp will still exist between invocations of the program. This defeats the purpose of the freeze status file 2. FHS dictates that /var/run must be cleaned on boot, this ensures that a stale freeze status file will be removed on boot Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> --- qemu-ga.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qemu-ga.c b/qemu-ga.c index b747470..daeaea5 100644 --- a/qemu-ga.c +++ b/qemu-ga.c @@ -40,8 +40,8 @@ #else #define QGA_VIRTIO_PATH_DEFAULT "\\\\.\\Global\\org.qemu.guest_agent.0" #endif -#define QGA_PIDFILE_DEFAULT "/var/run/qemu-ga.pid" -#define QGA_STATEDIR_DEFAULT "/tmp" +#define QGA_STATEDIR_DEFAULT CONFIG_QEMU_LOCALSTATEDIR "/run" +#define QGA_PIDFILE_DEFAULT QGA_STATEDIR_DEFAULT "/qemu-ga.pid" #define QGA_SENTINEL_BYTE 0xFF struct GAState { -- 1.7.12.315.g682ce8b ^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [Qemu-devel] [PATCH 2/2] qemu-ga: use state dir from CONFIG_QEMU_LOCALSTATEDIR 2012-10-03 21:35 ` [Qemu-devel] [PATCH 2/2] qemu-ga: use state dir from CONFIG_QEMU_LOCALSTATEDIR Luiz Capitulino @ 2012-10-04 15:47 ` Michael Roth 2012-10-04 15:50 ` Luiz Capitulino 0 siblings, 1 reply; 10+ messages in thread From: Michael Roth @ 2012-10-04 15:47 UTC (permalink / raw) To: Luiz Capitulino; +Cc: pbonzini, qemu-devel On Wed, Oct 03, 2012 at 06:35:58PM -0300, Luiz Capitulino wrote: > Has the side effect of changing the default directory used to > save the freeze status file from /tmp to ${prefix}/var/run. > > This is a beneficial change for two reasons: > > 1. FHS states that programs must not assume that files in /tmp will > still exist between invocations of the program. This defeats > the purpose of the freeze status file > > 2. FHS dictates that /var/run must be cleaned on boot, this > ensures that a stale freeze status file will be removed on boot > > Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> > --- > qemu-ga.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/qemu-ga.c b/qemu-ga.c > index b747470..daeaea5 100644 > --- a/qemu-ga.c > +++ b/qemu-ga.c > @@ -40,8 +40,8 @@ > #else > #define QGA_VIRTIO_PATH_DEFAULT "\\\\.\\Global\\org.qemu.guest_agent.0" > #endif > -#define QGA_PIDFILE_DEFAULT "/var/run/qemu-ga.pid" > -#define QGA_STATEDIR_DEFAULT "/tmp" > +#define QGA_STATEDIR_DEFAULT CONFIG_QEMU_LOCALSTATEDIR "/run" > +#define QGA_PIDFILE_DEFAULT QGA_STATEDIR_DEFAULT "/qemu-ga.pid" Just to confirm, in configure we have: echo "qemu_localstatedir=$local_statedir" >> $config_host_mak Is there some magic that generates a CONFIG_QEMU_LOCALSTATEDIR with the same value? If so: Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com> > #define QGA_SENTINEL_BYTE 0xFF > > struct GAState { > -- > 1.7.12.315.g682ce8b > ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Qemu-devel] [PATCH 2/2] qemu-ga: use state dir from CONFIG_QEMU_LOCALSTATEDIR 2012-10-04 15:47 ` Michael Roth @ 2012-10-04 15:50 ` Luiz Capitulino 2012-10-04 17:37 ` Michael Roth 0 siblings, 1 reply; 10+ messages in thread From: Luiz Capitulino @ 2012-10-04 15:50 UTC (permalink / raw) To: Michael Roth; +Cc: pbonzini, qemu-devel On Thu, 4 Oct 2012 10:47:06 -0500 Michael Roth <mdroth@linux.vnet.ibm.com> wrote: > On Wed, Oct 03, 2012 at 06:35:58PM -0300, Luiz Capitulino wrote: > > Has the side effect of changing the default directory used to > > save the freeze status file from /tmp to ${prefix}/var/run. > > > > This is a beneficial change for two reasons: > > > > 1. FHS states that programs must not assume that files in /tmp will > > still exist between invocations of the program. This defeats > > the purpose of the freeze status file > > > > 2. FHS dictates that /var/run must be cleaned on boot, this > > ensures that a stale freeze status file will be removed on boot > > > > Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> > > --- > > qemu-ga.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/qemu-ga.c b/qemu-ga.c > > index b747470..daeaea5 100644 > > --- a/qemu-ga.c > > +++ b/qemu-ga.c > > @@ -40,8 +40,8 @@ > > #else > > #define QGA_VIRTIO_PATH_DEFAULT "\\\\.\\Global\\org.qemu.guest_agent.0" > > #endif > > -#define QGA_PIDFILE_DEFAULT "/var/run/qemu-ga.pid" > > -#define QGA_STATEDIR_DEFAULT "/tmp" > > +#define QGA_STATEDIR_DEFAULT CONFIG_QEMU_LOCALSTATEDIR "/run" > > +#define QGA_PIDFILE_DEFAULT QGA_STATEDIR_DEFAULT "/qemu-ga.pid" > > Just to confirm, in configure we have: > > echo "qemu_localstatedir=$local_statedir" >> $config_host_mak > > Is there some magic that generates a CONFIG_QEMU_LOCALSTATEDIR with the > same value? If so: Yes, that's done by scripts/create_config > Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com> Btw, is this going through your tree? > > > #define QGA_SENTINEL_BYTE 0xFF > > > > struct GAState { > > -- > > 1.7.12.315.g682ce8b > > > ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Qemu-devel] [PATCH 2/2] qemu-ga: use state dir from CONFIG_QEMU_LOCALSTATEDIR 2012-10-04 15:50 ` Luiz Capitulino @ 2012-10-04 17:37 ` Michael Roth 2012-10-04 17:48 ` Luiz Capitulino 0 siblings, 1 reply; 10+ messages in thread From: Michael Roth @ 2012-10-04 17:37 UTC (permalink / raw) To: Luiz Capitulino; +Cc: pbonzini, qemu-devel On Thu, Oct 04, 2012 at 12:50:15PM -0300, Luiz Capitulino wrote: > On Thu, 4 Oct 2012 10:47:06 -0500 > Michael Roth <mdroth@linux.vnet.ibm.com> wrote: > > > On Wed, Oct 03, 2012 at 06:35:58PM -0300, Luiz Capitulino wrote: > > > Has the side effect of changing the default directory used to > > > save the freeze status file from /tmp to ${prefix}/var/run. > > > > > > This is a beneficial change for two reasons: > > > > > > 1. FHS states that programs must not assume that files in /tmp will > > > still exist between invocations of the program. This defeats > > > the purpose of the freeze status file > > > > > > 2. FHS dictates that /var/run must be cleaned on boot, this > > > ensures that a stale freeze status file will be removed on boot > > > > > > Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> > > > --- > > > qemu-ga.c | 4 ++-- > > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > > > diff --git a/qemu-ga.c b/qemu-ga.c > > > index b747470..daeaea5 100644 > > > --- a/qemu-ga.c > > > +++ b/qemu-ga.c > > > @@ -40,8 +40,8 @@ > > > #else > > > #define QGA_VIRTIO_PATH_DEFAULT "\\\\.\\Global\\org.qemu.guest_agent.0" > > > #endif > > > -#define QGA_PIDFILE_DEFAULT "/var/run/qemu-ga.pid" > > > -#define QGA_STATEDIR_DEFAULT "/tmp" > > > +#define QGA_STATEDIR_DEFAULT CONFIG_QEMU_LOCALSTATEDIR "/run" > > > +#define QGA_PIDFILE_DEFAULT QGA_STATEDIR_DEFAULT "/qemu-ga.pid" > > > > Just to confirm, in configure we have: > > > > echo "qemu_localstatedir=$local_statedir" >> $config_host_mak > > > > Is there some magic that generates a CONFIG_QEMU_LOCALSTATEDIR with the > > same value? If so: > > Yes, that's done by scripts/create_config > > > Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com> > > Btw, is this going through your tree? Yup, was planning on sending a pull tomorrow after some basic testing. Same for the standalone pidfile fix-up. > > > > > > #define QGA_SENTINEL_BYTE 0xFF > > > > > > struct GAState { > > > -- > > > 1.7.12.315.g682ce8b > > > > > > ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Qemu-devel] [PATCH 2/2] qemu-ga: use state dir from CONFIG_QEMU_LOCALSTATEDIR 2012-10-04 17:37 ` Michael Roth @ 2012-10-04 17:48 ` Luiz Capitulino 2012-10-04 18:01 ` Michael Roth 0 siblings, 1 reply; 10+ messages in thread From: Luiz Capitulino @ 2012-10-04 17:48 UTC (permalink / raw) To: Michael Roth; +Cc: pbonzini, qemu-devel On Thu, 4 Oct 2012 12:37:55 -0500 Michael Roth <mdroth@linux.vnet.ibm.com> wrote: > On Thu, Oct 04, 2012 at 12:50:15PM -0300, Luiz Capitulino wrote: > > On Thu, 4 Oct 2012 10:47:06 -0500 > > Michael Roth <mdroth@linux.vnet.ibm.com> wrote: > > > > > On Wed, Oct 03, 2012 at 06:35:58PM -0300, Luiz Capitulino wrote: > > > > Has the side effect of changing the default directory used to > > > > save the freeze status file from /tmp to ${prefix}/var/run. > > > > > > > > This is a beneficial change for two reasons: > > > > > > > > 1. FHS states that programs must not assume that files in /tmp will > > > > still exist between invocations of the program. This defeats > > > > the purpose of the freeze status file > > > > > > > > 2. FHS dictates that /var/run must be cleaned on boot, this > > > > ensures that a stale freeze status file will be removed on boot > > > > > > > > Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> > > > > --- > > > > qemu-ga.c | 4 ++-- > > > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > > > > > diff --git a/qemu-ga.c b/qemu-ga.c > > > > index b747470..daeaea5 100644 > > > > --- a/qemu-ga.c > > > > +++ b/qemu-ga.c > > > > @@ -40,8 +40,8 @@ > > > > #else > > > > #define QGA_VIRTIO_PATH_DEFAULT "\\\\.\\Global\\org.qemu.guest_agent.0" > > > > #endif > > > > -#define QGA_PIDFILE_DEFAULT "/var/run/qemu-ga.pid" > > > > -#define QGA_STATEDIR_DEFAULT "/tmp" > > > > +#define QGA_STATEDIR_DEFAULT CONFIG_QEMU_LOCALSTATEDIR "/run" > > > > +#define QGA_PIDFILE_DEFAULT QGA_STATEDIR_DEFAULT "/qemu-ga.pid" > > > > > > Just to confirm, in configure we have: > > > > > > echo "qemu_localstatedir=$local_statedir" >> $config_host_mak > > > > > > Is there some magic that generates a CONFIG_QEMU_LOCALSTATEDIR with the > > > same value? If so: > > > > Yes, that's done by scripts/create_config > > > > > Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com> > > > > Btw, is this going through your tree? > > Yup, was planning on sending a pull tomorrow after some basic testing. > Same for the standalone pidfile fix-up. Ok! Please, I didn't mean to hurry you up, just wanted to check we wouldn't deadlock waiting for each other :) > > > > > > > > > > #define QGA_SENTINEL_BYTE 0xFF > > > > > > > > struct GAState { > > > > -- > > > > 1.7.12.315.g682ce8b > > > > > > > > > > ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Qemu-devel] [PATCH 2/2] qemu-ga: use state dir from CONFIG_QEMU_LOCALSTATEDIR 2012-10-04 17:48 ` Luiz Capitulino @ 2012-10-04 18:01 ` Michael Roth 0 siblings, 0 replies; 10+ messages in thread From: Michael Roth @ 2012-10-04 18:01 UTC (permalink / raw) To: Luiz Capitulino; +Cc: pbonzini, qemu-devel On Thu, Oct 04, 2012 at 02:48:38PM -0300, Luiz Capitulino wrote: > On Thu, 4 Oct 2012 12:37:55 -0500 > Michael Roth <mdroth@linux.vnet.ibm.com> wrote: > > > On Thu, Oct 04, 2012 at 12:50:15PM -0300, Luiz Capitulino wrote: > > > On Thu, 4 Oct 2012 10:47:06 -0500 > > > Michael Roth <mdroth@linux.vnet.ibm.com> wrote: > > > > > > > On Wed, Oct 03, 2012 at 06:35:58PM -0300, Luiz Capitulino wrote: > > > > > Has the side effect of changing the default directory used to > > > > > save the freeze status file from /tmp to ${prefix}/var/run. > > > > > > > > > > This is a beneficial change for two reasons: > > > > > > > > > > 1. FHS states that programs must not assume that files in /tmp will > > > > > still exist between invocations of the program. This defeats > > > > > the purpose of the freeze status file > > > > > > > > > > 2. FHS dictates that /var/run must be cleaned on boot, this > > > > > ensures that a stale freeze status file will be removed on boot > > > > > > > > > > Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> > > > > > --- > > > > > qemu-ga.c | 4 ++-- > > > > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > > > > > > > diff --git a/qemu-ga.c b/qemu-ga.c > > > > > index b747470..daeaea5 100644 > > > > > --- a/qemu-ga.c > > > > > +++ b/qemu-ga.c > > > > > @@ -40,8 +40,8 @@ > > > > > #else > > > > > #define QGA_VIRTIO_PATH_DEFAULT "\\\\.\\Global\\org.qemu.guest_agent.0" > > > > > #endif > > > > > -#define QGA_PIDFILE_DEFAULT "/var/run/qemu-ga.pid" > > > > > -#define QGA_STATEDIR_DEFAULT "/tmp" > > > > > +#define QGA_STATEDIR_DEFAULT CONFIG_QEMU_LOCALSTATEDIR "/run" > > > > > +#define QGA_PIDFILE_DEFAULT QGA_STATEDIR_DEFAULT "/qemu-ga.pid" > > > > > > > > Just to confirm, in configure we have: > > > > > > > > echo "qemu_localstatedir=$local_statedir" >> $config_host_mak > > > > > > > > Is there some magic that generates a CONFIG_QEMU_LOCALSTATEDIR with the > > > > same value? If so: > > > > > > Yes, that's done by scripts/create_config > > > > > > > Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com> > > > > > > Btw, is this going through your tree? > > > > Yup, was planning on sending a pull tomorrow after some basic testing. > > Same for the standalone pidfile fix-up. > > Ok! Please, I didn't mean to hurry you up, just wanted to check we wouldn't > deadlock waiting for each other :) Understood; no worries :) Patches seem pretty straightforward and the qemu-ga queue isn't exactly overflowing atm so I didn't see any reason to sit on these for too long. > > > > > > > > > > > > > > > #define QGA_SENTINEL_BYTE 0xFF > > > > > > > > > > struct GAState { > > > > > -- > > > > > 1.7.12.315.g682ce8b > > > > > > > > > > > > > > > ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Qemu-devel] [PATCH v2 0/2] qemu-ga: change default state dir to /var/run 2012-10-03 21:35 [Qemu-devel] [PATCH v2 0/2] qemu-ga: change default state dir to /var/run Luiz Capitulino 2012-10-03 21:35 ` [Qemu-devel] [PATCH 1/2] configure: add --localstatedir Luiz Capitulino 2012-10-03 21:35 ` [Qemu-devel] [PATCH 2/2] qemu-ga: use state dir from CONFIG_QEMU_LOCALSTATEDIR Luiz Capitulino @ 2012-10-04 7:07 ` Paolo Bonzini 2 siblings, 0 replies; 10+ messages in thread From: Paolo Bonzini @ 2012-10-04 7:07 UTC (permalink / raw) To: Luiz Capitulino; +Cc: mdroth, qemu-devel Il 03/10/2012 23:35, Luiz Capitulino ha scritto: > Also allow users to change the default at configure time. Please, check > individual patches for more details. > > o v2 > > - drop --guest-agent-statedir in favor of --localstatedir > - change default from /var/run to ${prefix}/var/run > > Luiz Capitulino (2): > configure: add --localstatedir > qemu-ga: use state dir from CONFIG_QEMU_LOCALSTATEDIR > > configure | 9 ++++++++- > qemu-ga.c | 4 ++-- > 2 files changed, 10 insertions(+), 3 deletions(-) > Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2012-10-04 18:02 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-10-03 21:35 [Qemu-devel] [PATCH v2 0/2] qemu-ga: change default state dir to /var/run Luiz Capitulino 2012-10-03 21:35 ` [Qemu-devel] [PATCH 1/2] configure: add --localstatedir Luiz Capitulino 2012-10-04 15:39 ` Michael Roth 2012-10-03 21:35 ` [Qemu-devel] [PATCH 2/2] qemu-ga: use state dir from CONFIG_QEMU_LOCALSTATEDIR Luiz Capitulino 2012-10-04 15:47 ` Michael Roth 2012-10-04 15:50 ` Luiz Capitulino 2012-10-04 17:37 ` Michael Roth 2012-10-04 17:48 ` Luiz Capitulino 2012-10-04 18:01 ` Michael Roth 2012-10-04 7:07 ` [Qemu-devel] [PATCH v2 0/2] qemu-ga: change default state dir to /var/run Paolo Bonzini
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).