Skip to contentSkip to conversation

Rename qemu -> qemu-system-i386

PATCH Applied Anthony Liguori 7 participants 12 messages Aug 29, 2011 – Sep 4, 2011 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Rename qemu -> qemu-system-i386

This has been discussed before in the past. The special casing really makes no sense anymore. This seems like a good change to make for 1.0.

---
 Makefile        |    5 ++---
 Makefile.target |    4 ----
 2 files changed, 2 insertions(+), 7 deletions(-)
Makefile +2 -3
index 8606849..51ecdb5 100644
@@ -365,9 +365,8 @@ tar:
 	rm -rf /tmp/$(FILE)
 
 SYSTEM_TARGETS=$(filter %-softmmu,$(TARGET_DIRS))
-SYSTEM_PROGS=$(patsubst qemu-system-i386,qemu, \
-             $(patsubst %-softmmu,qemu-system-%, \
-             $(SYSTEM_TARGETS)))
+SYSTEM_PROGS=$(patsubst %-softmmu,qemu-system-%, \
+             $(SYSTEM_TARGETS))
 
 USER_TARGETS=$(filter %-user,$(TARGET_DIRS))
 USER_PROGS=$(patsubst %-bsd-user,qemu-%, \
Makefile.target +0 -4
index 07af4d4..29287ed 100644
@@ -27,12 +27,8 @@ ifdef CONFIG_USER_ONLY
 QEMU_PROG=qemu-$(TARGET_ARCH2)
 else
 # system emulator name
-ifeq ($(TARGET_ARCH), i386)
-QEMU_PROG=qemu$(EXESUF)
-else
 QEMU_PROG=qemu-system-$(TARGET_ARCH2)$(EXESUF)
 endif
-endif
 
 PROGS=$(QEMU_PROG)
 STPFILES=
Signature · 1 line
1.7.4.1
#2 lore raw
In reply to Anthony Liguori
Quoted 2 lines · Anthony Liguori

This has been discussed before in the past.  The special casing really makes no sense anymore.  This seems like a good change to make for 1.0.

No issues here. Obviously it would need to be flagged up to users, which suggests a thought: should we create a ChangeLog/trunk wiki page to list things we're going to have to release-note for 1.0 so we don't have to try to remember them all later?

-- PMM

#3 lore raw
Quoted 8 lines · Peter Maydell
Quoted 2 lines · Anthony Liguori

This has been discussed before in the past. The special casing really makes no sense anymore. This seems like a good change to make for 1.0.

No issues here. Obviously it would need to be flagged up to users, which suggests a thought: should we create a ChangeLog/trunk wiki page to list things we're going to have to release-note for 1.0 so we don't have to try to remember them all later?

Excellent thought.

http://wiki.qemu.org/ChangeLog/Next

Regards,

Anthony Liguori

Quoted 3 lines

-- PMM

#4 lore raw
In reply to Anthony Liguori
Quoted 14 lines · Anthony Liguori

This has been discussed before in the past.  The special casing really makes no sense anymore.  This seems like a good change to make for 1.0.

---
 Makefile        |    5 ++---
 Makefile.target |    4 ----

 2 files changed, 2 insertions(+), 7 deletions(-)
Makefile +0 -0
index 8606849..51ecdb5 100644

Makefile tar: · line 369

Quoted 8 lines
Makefile +2 -3
@@ -365,9 +365,8 @@ tar:
        rm -rf /tmp/$(FILE)
 
  SYSTEM_TARGETS=$(filter %-softmmu,$(TARGET_DIRS))
-SYSTEM_PROGS=$(patsubst qemu-system-i386,qemu, \
-             $(patsubst %-softmmu,qemu-system-%, \
-             $(SYSTEM_TARGETS)))
+SYSTEM_PROGS=$(patsubst %-softmmu,qemu-system-%, \
+             $(SYSTEM_TARGETS))

Maybe the patsubst could be avoided, just rename the build directory from *-softmmu to qemu-system-* while at it?

Makefile tar: · line 372

Quoted 3 lines
Makefile +0 -0
  USER_TARGETS=$(filter %-user,$(TARGET_DIRS))
  USER_PROGS=$(patsubst %-bsd-user,qemu-%, \

Also here the directory and executable names could be made to match.

Quoted 21 lines
Makefile.target +0 -0
index 07af4d4..29287ed 100644
@@ -27,12 +27,8 @@ ifdef CONFIG_USER_ONLY
  QEMU_PROG=qemu-$(TARGET_ARCH2)

 else

 # system emulator name
Makefile.target +0 -3
-ifeq ($(TARGET_ARCH), i386)
-QEMU_PROG=qemu$(EXESUF)
-else

 QEMU_PROG=qemu-system-$(TARGET_ARCH2)$(EXESUF)
 endif
-endif

 PROGS=$(QEMU_PROG)
 STPFILES=
--
1.7.4.1

#5 lore raw
Quoted 28 lines · Blue Swirl
Quoted 14 lines · Anthony Liguori

This has been discussed before in the past. The special casing really makes no sense anymore. This seems like a good change to make for 1.0.

---
  Makefile        |    5 ++---
  Makefile.target |    4 ----
  2 files changed, 2 insertions(+), 7 deletions(-)
Makefile +0 -0
index 8606849..51ecdb5 100644

Makefile tar: · line 369

Quoted 8 lines
Makefile +2 -3
@@ -365,9 +365,8 @@ tar:
        rm -rf /tmp/$(FILE)
 
  SYSTEM_TARGETS=$(filter %-softmmu,$(TARGET_DIRS))
-SYSTEM_PROGS=$(patsubst qemu-system-i386,qemu, \
-             $(patsubst %-softmmu,qemu-system-%, \
-             $(SYSTEM_TARGETS)))
+SYSTEM_PROGS=$(patsubst %-softmmu,qemu-system-%, \
+             $(SYSTEM_TARGETS))

Maybe the patsubst could be avoided, just rename the build directory from *-softmmu to qemu-system-* while at it?

Quoted 1 line
Quoted 4 lines
Quoted 2 lines
  USER_TARGETS=$(filter %-user,$(TARGET_DIRS))
  USER_PROGS=$(patsubst %-bsd-user,qemu-%, \

Also here the directory and executable names could be made to match.

I thought that historically the phrase softmmu was for the variant of libcpu that had an emulated TLB.

I know Peter's been talking about a linux-user mode that uses softmmu since certain combinations of architectures today are impossible with linux-user (ia64 on x86_64 for instance).

So I think the current naming conventions probably are reasonable although I'm not opposed to changing them. I think that should be a separate patch though.

Regards,

Anthony Liguori

Quoted 24 lines
Quoted 22 lines
Makefile.target +0 -5
index 07af4d4..29287ed 100644
@@ -27,12 +27,8 @@ ifdef CONFIG_USER_ONLY
  QEMU_PROG=qemu-$(TARGET_ARCH2)
  else
  # system emulator name
-ifeq ($(TARGET_ARCH), i386)
-QEMU_PROG=qemu$(EXESUF)
-else
  QEMU_PROG=qemu-system-$(TARGET_ARCH2)$(EXESUF)
  endif
-endif
 
  PROGS=$(QEMU_PROG)
  STPFILES=
--

1.7.4.1

#6 lore raw
Quoted 36 lines · Anthony Liguori
Quoted 35 lines · Blue Swirl
Quoted 16 lines · Anthony Liguori

This has been discussed before in the past.  The special casing really makes no
sense anymore.  This seems like a good change to make for 1.0.

---
 Makefile        |    5 ++---
 Makefile.target |    4 ----

 2 files changed, 2 insertions(+), 7 deletions(-)
Makefile +0 -0
index 8606849..51ecdb5 100644

Makefile tar: · line 369

Quoted 8 lines
Makefile +2 -3
@@ -365,9 +365,8 @@ tar:
        rm -rf /tmp/$(FILE)
 
  SYSTEM_TARGETS=$(filter %-softmmu,$(TARGET_DIRS))
-SYSTEM_PROGS=$(patsubst qemu-system-i386,qemu, \
-             $(patsubst %-softmmu,qemu-system-%, \
-             $(SYSTEM_TARGETS)))
+SYSTEM_PROGS=$(patsubst %-softmmu,qemu-system-%, \
+             $(SYSTEM_TARGETS))

Maybe the patsubst could be avoided, just rename the build directory from *-softmmu to qemu-system-* while at it?

Quoted 3 lines
Makefile +0 -0
  USER_TARGETS=$(filter %-user,$(TARGET_DIRS))
  USER_PROGS=$(patsubst %-bsd-user,qemu-%, \
Quoted 8 lines
Quoted 1 line

Also here the directory and executable names could be made to match.

I thought that historically the phrase softmmu was for the variant of libcpu that had an emulated TLB.

I know Peter's been talking about a linux-user mode that uses softmmu since certain combinations of architectures today are impossible with linux-user (ia64 on x86_64 for instance).

That could be qemu-linux-softmmu-xxx.

If we had a similar mode for system emulation which used host MMU, those system emulators could be named qemu-system-hostmmu-xxx.

Quoted 3 lines

So I think the current naming conventions probably are reasonable although I'm not opposed to changing them.  I think that should be a separate patch though.

OK. The names of the build directories do not bring users any major benefits in any case.

Quoted 31 lines

Regards,

Anthony Liguori

Quoted 24 lines
Quoted 22 lines
Makefile.target +0 -0
index 07af4d4..29287ed 100644
@@ -27,12 +27,8 @@ ifdef CONFIG_USER_ONLY
  QEMU_PROG=qemu-$(TARGET_ARCH2)

 else

 # system emulator name
Makefile.target +0 -3
-ifeq ($(TARGET_ARCH), i386)
-QEMU_PROG=qemu$(EXESUF)
-else

 QEMU_PROG=qemu-system-$(TARGET_ARCH2)$(EXESUF)
 endif
-endif

 PROGS=$(QEMU_PROG)
 STPFILES=
--
1.7.4.1

author Applied
#7 lore raw
In reply to Anthony Liguori
Quoted 4 lines · Anthony Liguori

This has been discussed before in the past. The special casing really makes no sense anymore. This seems like a good change to make for 1.0.

Applied.

Regards,

Anthony Liguori

Quoted 38 lines
---
  Makefile        |    5 ++---
  Makefile.target |    4 ----
  2 files changed, 2 insertions(+), 7 deletions(-)
Makefile +2 -3
index 8606849..51ecdb5 100644
@@ -365,9 +365,8 @@ tar:
  	rm -rf /tmp/$(FILE)
 
  SYSTEM_TARGETS=$(filter %-softmmu,$(TARGET_DIRS))
-SYSTEM_PROGS=$(patsubst qemu-system-i386,qemu, \
-             $(patsubst %-softmmu,qemu-system-%, \
-             $(SYSTEM_TARGETS)))
+SYSTEM_PROGS=$(patsubst %-softmmu,qemu-system-%, \
+             $(SYSTEM_TARGETS))
 
  USER_TARGETS=$(filter %-user,$(TARGET_DIRS))
  USER_PROGS=$(patsubst %-bsd-user,qemu-%, \
Makefile.target +0 -4
index 07af4d4..29287ed 100644
@@ -27,12 +27,8 @@ ifdef CONFIG_USER_ONLY
  QEMU_PROG=qemu-$(TARGET_ARCH2)
  else
  # system emulator name
-ifeq ($(TARGET_ARCH), i386)
-QEMU_PROG=qemu$(EXESUF)
-else
  QEMU_PROG=qemu-system-$(TARGET_ARCH2)$(EXESUF)
  endif
-endif
 
  PROGS=$(QEMU_PROG)
  STPFILES=
#8 lore raw

Am 02.09.2011 um 17:40 schrieb Anthony Liguori:

Quoted 48 lines · Anthony Liguori
Quoted 4 lines

This has been discussed before in the past. The special casing really makes no sense anymore. This seems like a good change to make for 1.0.

Applied.

Regards,

Anthony Liguori

Quoted 36 lines
---
 Makefile        |    5 ++---
 Makefile.target |    4 ----
 2 files changed, 2 insertions(+), 7 deletions(-)
Makefile +2 -3
index 8606849..51ecdb5 100644
@@ -365,9 +365,8 @@ tar:
 	rm -rf /tmp/$(FILE)
 
 SYSTEM_TARGETS=$(filter %-softmmu,$(TARGET_DIRS))
-SYSTEM_PROGS=$(patsubst qemu-system-i386,qemu, \
-             $(patsubst %-softmmu,qemu-system-%, \
-             $(SYSTEM_TARGETS)))
+SYSTEM_PROGS=$(patsubst %-softmmu,qemu-system-%, \
+             $(SYSTEM_TARGETS))
 
 USER_TARGETS=$(filter %-user,$(TARGET_DIRS))
 USER_PROGS=$(patsubst %-bsd-user,qemu-%, \
Makefile.target +0 -4
index 07af4d4..29287ed 100644
@@ -27,12 +27,8 @@ ifdef CONFIG_USER_ONLY
 QEMU_PROG=qemu-$(TARGET_ARCH2)
 else
 # system emulator name
-ifeq ($(TARGET_ARCH), i386)
-QEMU_PROG=qemu$(EXESUF)
-else
 QEMU_PROG=qemu-system-$(TARGET_ARCH2)$(EXESUF)
 endif
-endif
 
Quoted 2 lines

Makefile.target ifdef CONFIG_USER_ONLY · line 34

Quoted 2 lines
Makefile.target +0 -0
 PROGS=$(QEMU_PROG)
 STPFILES=

This will leave an old qemu executable from a previous make install behind.
We should check for it and, unless it's a symlink to qemu-system-i386, remove it in the install target.

Andreas

#9 lore raw
Quoted 3 lines · Andreas Färber

This will leave an old qemu executable from a previous make install behind. We should check for it and, unless it's a symlink to qemu-system-i386, remove it in the install target.

No, "make install" should never remove anything.

Paolo

#10 lore raw
In reply to Andreas Färber
Quoted 51 lines · Andreas Färber

Am 02.09.2011 um 17:40 schrieb Anthony Liguori:

Quoted 49 lines · Anthony Liguori
Quoted 5 lines

This has been discussed before in the past. The special casing really makes no
sense anymore. This seems like a good change to make for 1.0.

Applied.

Regards,

Anthony Liguori

Quoted 36 lines

---
Makefile | 5 ++---
Makefile.target | 4 ----

2 files changed, 2 insertions(+), 7 deletions(-)
Makefile +2 -3
index 8606849..51ecdb5 100644
@@ -365,9 +365,8 @@ tar:
 rm -rf /tmp/$(FILE)
 
 SYSTEM_TARGETS=$(filter %-softmmu,$(TARGET_DIRS))
-SYSTEM_PROGS=$(patsubst qemu-system-i386,qemu, \
- $(patsubst %-softmmu,qemu-system-%, \
- $(SYSTEM_TARGETS)))
+SYSTEM_PROGS=$(patsubst %-softmmu,qemu-system-%, \
+ $(SYSTEM_TARGETS))
 
 USER_TARGETS=$(filter %-user,$(TARGET_DIRS))
 USER_PROGS=$(patsubst %-bsd-user,qemu-%, \
Makefile.target +0 -0
index 07af4d4..29287ed 100644
@@ -27,12 +27,8 @@ ifdef CONFIG_USER_ONLY
 QEMU_PROG=qemu-$(TARGET_ARCH2)

else

# system emulator name
Makefile.target +0 -3
-ifeq ($(TARGET_ARCH), i386)
-QEMU_PROG=qemu$(EXESUF)
-else

QEMU_PROG=qemu-system-$(TARGET_ARCH2)$(EXESUF)
endif
-endif

Quoted 5 lines
Quoted 2 lines
Quoted 2 lines

PROGS=$(QEMU_PROG)
STPFILES=

This will leave an old qemu executable from a previous make install behind.

You're not supposed to do a make install on top of another install. You're supposed to first do a make uninstall in the old tree than a make install in the new tree.

Semantically, this is how a distro package upgrade works.

Quoted 2 lines

We should check for it and, unless it's a symlink to qemu-system-i386, remove it in the install target.

Once we're no longer generating an executable, we should be removing it from the system.

It's up to the user to remove old files from the system.

Regards,

Anthony Liguori

Quoted 3 lines

Andreas

#11 lore raw

Am 03.09.2011 um 22:09 schrieb Anthony Liguori:

Quoted 19 lines · Andreas Färber
Quoted 18 lines

Am 02.09.2011 um 17:40 schrieb Anthony Liguori:

Quoted 16 lines · Anthony Liguori
Quoted 15 lines
Makefile.target +0 -0
index 07af4d4..29287ed 100644
@@ -27,12 +27,8 @@ ifdef CONFIG_USER_ONLY
 QEMU_PROG=qemu-$(TARGET_ARCH2)

else

# system emulator name
Makefile.target +0 -3
-ifeq ($(TARGET_ARCH), i386)
-QEMU_PROG=qemu$(EXESUF)
-else

QEMU_PROG=qemu-system-$(TARGET_ARCH2)$(EXESUF)
endif
-endif

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines

PROGS=$(QEMU_PROG)
STPFILES=

This will leave an old qemu executable from a previous make install behind.

You're not supposed to do a make install on top of another install. You're supposed to first do a make uninstall in the old tree than a make install in the new tree.

In practice though, I do git pull, make, make install and so will others.

Quoted 6 lines
Quoted 2 lines

We should check for it and, unless it's a symlink to qemu-system-i386, remove it in the install target.

Once we're no longer generating an executable, we should be removing it from the system.

It's up to the user to remove old files from the system.

Yeah, Paolo is right there, install shouldn't remove.

What I had in mind was Git's switch from lots of git-* scripts to the single git. make install checked for such artefacts. My point was, I believe we should do the same here and *detect* it within the install target. I'd be fine with a prominent textual notice. And I'd contribute a patch myself but have more urgent worries first, so if someone with more shell foo wants to take a stab, please do.

We should also make sure make clean still removes an old qemu from the build dir.

Andreas