X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=v3_config_v3vee.pl;h=ae2a86f38dd765ad749ab2d41aad7d992edc55dd;hp=6abadbcf37e76333b6c0ba06b5474ab9eb99ed2a;hb=4b7f19c51325601d7e7569e6101c7bfcdf984ef7;hpb=91ef3996eacfdaf322afa7c6a4f120b4c3c5bf70 diff --git a/v3_config_v3vee.pl b/v3_config_v3vee.pl index 6abadbc..ae2a86f 100755 --- a/v3_config_v3vee.pl +++ b/v3_config_v3vee.pl @@ -15,7 +15,7 @@ at least the following: cd linux_usr make cd .. - ./v3_config.pl + ./v3_config_v3vee.pl This tool will create (or overwrite) the following for you: @@ -89,11 +89,11 @@ print "What is your kernel's maximum contiguous page allocation size in bytes (t $maxalloc = get_user($maxalloc); -$shadow = 'y'; +$gb4 = 'n'; -print "Do you need to run guests with shadow paging or for other reasons that require 4GB enforcement of page allocation? [$shadow] : "; +print "Do you need to use features that require 4GB enforcement of page allocation? [$gb4] : "; -$shadow = get_user($shadow); +$gb4 = get_user($gb4); if ($hotremove eq "y") { print "Your kernel supports hot remove. Do you want to use it? [$hotremove] : "; @@ -122,6 +122,27 @@ $devmem='y'; print "Do you need userspace access to your VMs' physical memory? [$devmem] : "; $devmem = get_user($devmem); +$qemu='n'; +$qemudir=$pdir."/linux_usr/qemu"; + +$hostdev = get_palacios_core_feature($pdir,"V3_CONFIG_HOST_DEVICE"); + +if ($hostdev eq "y") { + print "Your Palacios configuration includes the host device interface.\n"; + print "You can use it to interface with QEMU devices if you have a\n"; + print "patched version of QEMU (see linux_usr/qemu for more info)\n\n"; + print "Do you plan to use QEMU devices? [n] : "; + $qemu = get_user($qemu); + if ($qemu eq "y") { + while (1) { + print "What is the path to your patched version of QEMU ? [$qemudir] : "; + $qemudir = get_user($qemudir); + last if -e "$qemudir/bin/qemu-system-x86_64"; + print "$qemudir/bin/qemu-system-x86_64 cannot be found\n"; + } + } +} + print <ENV"); print ENV "export PALACIOS_DIR=$pdir\n"; +if ($qemu eq "y") { + print ENV "export PALACIOS_QEMU_DIR=$qemudir\n"; +} print ENV "export PATH=$pdir/linux_usr:\$PATH\n"; close(ENV); `chmod 644 ENV`; @@ -203,7 +229,7 @@ print " Memory block size: $chunk MB\n"; print " Number of blocks: $numchunks\n"; print " Number of nodes: $numnodes\n"; print " Blocks/node: $chunkspernode\n"; -print " 32 bit limit? $shadow\n"; +print " 32 bit limit? $gb4\n"; print " Hot-removed? $hotremove\n"; if ($numnodes*$chunkspernode*$chunk != $mem) { @@ -213,7 +239,7 @@ if ($numnodes*$chunkspernode*$chunk != $mem) { $cmd = "v3_mem -a"; $cmd.= " -k " if $hotremove eq 'n'; -$cmd.= " -l " if $shadow eq 'y'; +$cmd.= " -l " if $gb4 eq 'y'; for ($i=0;$i<$numnodes;$i++) { for ($j=0;$j<$chunkspernode;$j++) {