@@ -80,7 +80,6 @@ char *vsbl_file_name;
80
80
uint8_t trusty_enabled ;
81
81
bool stdio_in_use ;
82
82
83
- static int guest_vmexit_on_hlt , guest_vmexit_on_pause ;
84
83
static int virtio_msix = 1 ;
85
84
static int x2apic_mode ; /* default is xAPIC */
86
85
@@ -136,14 +135,11 @@ usage(int code)
136
135
" -b: enable bvmcons\n"
137
136
" -c: # cpus (default 1)\n"
138
137
" -C: include guest memory in core file\n"
139
- " -e: exit on unhandled I/O access\n"
140
138
" -g: gdb port\n"
141
139
" -h: help\n"
142
- " -H: vmexit from the guest on hlt\n"
143
140
" -l: LPC device configuration\n"
144
141
" -m: memory size in MB\n"
145
142
" -p: pin 'vcpu' to 'hostcpu'\n"
146
- " -P: vmexit from the guest on pause\n"
147
143
" -s: <slot,driver,configinfo> PCI slot config\n"
148
144
" -S: guest memory cannot be swapped\n"
149
145
" -u: RTC keeps UTC time\n"
@@ -171,7 +167,7 @@ usage(int code)
171
167
static void
172
168
print_version (void )
173
169
{
174
- fprintf (stderr , "DM version is: %s-%s (daily tag:%s), build by %s@%s\n" ,
170
+ fprintf (stdout , "DM version is: %s-%s (daily tag:%s), build by %s@%s\n" ,
175
171
DM_FULL_VERSION ,
176
172
DM_BUILD_VERSION , DM_DAILY_TAG , DM_BUILD_USER , DM_BUILD_TIME );
177
173
@@ -695,12 +691,11 @@ static struct option long_options[] = {
695
691
{"ncpus" , required_argument , 0 , 'c' },
696
692
{"memflags_incore" , no_argument , 0 , 'C' },
697
693
{"gdb_port" , required_argument , 0 , 'g' },
694
+ {"ioc node" , required_argument , 0 , 'i' },
698
695
{"lpc" , required_argument , 0 , 'l' },
699
696
{"pci_slot" , required_argument , 0 , 's' },
700
697
{"memflags_wired" , no_argument , 0 , 'S' },
701
698
{"memsize" , required_argument , 0 , 'm' },
702
- {"ioapic" , no_argument , 0 , 'I' },
703
- {"vmexit_pause" , no_argument , 0 , 'P' },
704
699
{"rtc_localtime" , no_argument , 0 , 'u' },
705
700
{"uuid" , required_argument , 0 , 'U' },
706
701
{"strictmsr" , no_argument , 0 , 'w' },
@@ -747,7 +742,7 @@ main(int argc, char *argv[])
747
742
if (signal (SIGINT , sig_handler_term ) == SIG_ERR )
748
743
fprintf (stderr , "cannot register handler for SIGINT\n" );
749
744
750
- optstr = "abehuwxACHIPSWYvk :r:B:p:g:c:s:m:l:U:G:i:" ;
745
+ optstr = "abhuwxACSWYvk :r:B:p:g:c:s:m:l:U:G:i:" ;
751
746
while ((c = getopt_long (argc , argv , optstr , long_options ,
752
747
& option_idx )) != -1 ) {
753
748
switch (c ) {
@@ -801,21 +796,6 @@ main(int argc, char *argv[])
801
796
if (error )
802
797
errx (EX_USAGE , "invalid memsize '%s'" , optarg );
803
798
break ;
804
- case 'H' :
805
- guest_vmexit_on_hlt = 1 ;
806
- break ;
807
- case 'I' :
808
- /*
809
- * The "-I" option was used to add an ioapic to the
810
- * virtual machine.
811
- *
812
- * An ioapic is now provided unconditionally for each
813
- * virtual machine and this option is now deprecated.
814
- */
815
- break ;
816
- case 'P' :
817
- guest_vmexit_on_pause = 1 ;
818
- break ;
819
799
case 'u' :
820
800
vrtc_enable_localtime (0 );
821
801
break ;
0 commit comments