From: Peter Maydell <peter.maydell@linaro.org>
To: qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>, Paul Brook <paul@codesourcery.com>,
Markus Armbruster <armbru@redhat.com>,
patches@linaro.org
Subject: [Qemu-devel] [PATCH 3/3] Drop default SD card creation
Date: Thu, 16 Aug 2012 14:45:54 +0100 [thread overview]
Message-ID: <1345124754-4173-4-git-send-email-peter.maydell@linaro.org> (raw)
In-Reply-To: <1345124754-4173-1-git-send-email-peter.maydell@linaro.org>
Now that all users of IF_SD drives can cope with there being
no drive present (ie "controller exists but there is no card in it")
we can drop the creation of the default IF_SD card in vl.c and
the no_sdcard field in the QEMUMachine struct.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
hw/boards.h | 3 +--
hw/s390-virtio.c | 1 -
hw/xilinx_zynq.c | 1 -
vl.c | 7 -------
4 files changed, 1 insertion(+), 11 deletions(-)
diff --git a/hw/boards.h b/hw/boards.h
index 59c01d0..af4c019 100644
--- a/hw/boards.h
+++ b/hw/boards.h
@@ -23,8 +23,7 @@ typedef struct QEMUMachine {
no_parallel:1,
use_virtcon:1,
no_floppy:1,
- no_cdrom:1,
- no_sdcard:1;
+ no_cdrom:1;
int is_default;
const char *default_machine_opts;
GlobalProperty *compat_props;
diff --git a/hw/s390-virtio.c b/hw/s390-virtio.c
index 47eed35..560393f 100644
--- a/hw/s390-virtio.c
+++ b/hw/s390-virtio.c
@@ -338,7 +338,6 @@ static QEMUMachine s390_machine = {
.no_floppy = 1,
.no_serial = 1,
.no_parallel = 1,
- .no_sdcard = 1,
.use_virtcon = 1,
.max_cpus = 255,
.is_default = 1,
diff --git a/hw/xilinx_zynq.c b/hw/xilinx_zynq.c
index 7e6c273..b532953 100644
--- a/hw/xilinx_zynq.c
+++ b/hw/xilinx_zynq.c
@@ -146,7 +146,6 @@ static QEMUMachine zynq_machine = {
.init = zynq_init,
.use_scsi = 1,
.max_cpus = 1,
- .no_sdcard = 1
};
static void zynq_machine_init(void)
diff --git a/vl.c b/vl.c
index d01256a..ba1953c 100644
--- a/vl.c
+++ b/vl.c
@@ -268,7 +268,6 @@ static int default_virtcon = 1;
static int default_monitor = 1;
static int default_floppy = 1;
static int default_cdrom = 1;
-static int default_sdcard = 1;
static int default_vga = 1;
static struct {
@@ -3169,7 +3168,6 @@ int main(int argc, char **argv, char **envp)
default_net = 0;
default_floppy = 0;
default_cdrom = 0;
- default_sdcard = 0;
default_vga = 0;
break;
case QEMU_OPTION_xen_domid:
@@ -3343,9 +3341,6 @@ int main(int argc, char **argv, char **envp)
if (machine->no_cdrom) {
default_cdrom = 0;
}
- if (machine->no_sdcard) {
- default_sdcard = 0;
- }
if (display_type == DT_NOGRAPHIC) {
if (default_parallel)
@@ -3488,8 +3483,6 @@ int main(int argc, char **argv, char **envp)
IF_DEFAULT, 2, CDROM_OPTS);
default_drive(default_floppy, snapshot, machine->use_scsi,
IF_FLOPPY, 0, FD_OPTS);
- default_drive(default_sdcard, snapshot, machine->use_scsi,
- IF_SD, 0, SD_OPTS);
register_savevm_live(NULL, "ram", 0, 4, &savevm_ram_handlers, NULL);
--
1.7.9.5
next prev parent reply other threads:[~2012-08-16 13:56 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-16 13:45 [Qemu-devel] [PATCH 0/3] Drop default SD card creation Peter Maydell
2012-08-16 13:45 ` [Qemu-devel] [PATCH 1/3] omap: Get BlockDriverState* in mmc controller init, not board init Peter Maydell
2012-08-16 13:45 ` [Qemu-devel] [PATCH 2/3] pxa2xx: " Peter Maydell
2012-08-16 13:45 ` Peter Maydell [this message]
2012-08-16 14:11 ` [Qemu-devel] [PATCH 0/3] Drop default SD card creation Markus Armbruster
2012-08-16 14:26 ` Peter Maydell
2012-08-16 14:56 ` Paul Brook
2012-08-16 15:17 ` Markus Armbruster
2012-08-16 15:24 ` Peter Maydell
2012-08-16 16:03 ` Markus Armbruster
2012-08-16 16:34 ` Paul Brook
2012-08-16 16:09 ` Paul Brook
2012-08-16 15:05 ` Markus Armbruster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1345124754-4173-4-git-send-email-peter.maydell@linaro.org \
--to=peter.maydell@linaro.org \
--cc=armbru@redhat.com \
--cc=kwolf@redhat.com \
--cc=patches@linaro.org \
--cc=paul@codesourcery.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).