mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
Revert "monitor: Command-line flag to enable control mode"
This reverts commit adcb181afe
.
Conflicts:
monitor.h
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
1a688d3bbc
commit
4e307fc883
4 changed files with 6 additions and 29 deletions
18
monitor.c
18
monitor.c
|
@ -4038,24 +4038,6 @@ static void monitor_event(void *opaque, int event)
|
|||
* End:
|
||||
*/
|
||||
|
||||
const char *monitor_cmdline_parse(const char *cmdline, int *flags)
|
||||
{
|
||||
const char *dev;
|
||||
|
||||
if (strstart(cmdline, "control,", &dev)) {
|
||||
if (strstart(dev, "vc", NULL)) {
|
||||
fprintf(stderr, "qemu: control mode is for low-level interaction ");
|
||||
fprintf(stderr, "cannot be used with device 'vc'\n");
|
||||
exit(1);
|
||||
}
|
||||
*flags &= ~MONITOR_USE_READLINE;
|
||||
*flags |= MONITOR_USE_CONTROL;
|
||||
return dev;
|
||||
}
|
||||
|
||||
return cmdline;
|
||||
}
|
||||
|
||||
void monitor_init(CharDriverState *chr, int flags)
|
||||
{
|
||||
static int is_first_init = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue