From cf60b264165c447335ff16d88a7428f8b40fdd46 Mon Sep 17 00:00:00 2001 From: SeokYeon Hwang Date: Wed, 10 Jun 2015 13:45:31 +0900 Subject: [PATCH] option: renewed "-drive" options Change-Id: If642a9772dd205084d9ca04874fd8b67b7490f88 Signed-off-by: SeokYeon Hwang --- .../emulator/manager/vms/option/BaseImageOption.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/org/tizen/emulator/manager/vms/option/BaseImageOption.java b/src/org/tizen/emulator/manager/vms/option/BaseImageOption.java index dc96096..866d7e6 100644 --- a/src/org/tizen/emulator/manager/vms/option/BaseImageOption.java +++ b/src/org/tizen/emulator/manager/vms/option/BaseImageOption.java @@ -35,17 +35,17 @@ public class BaseImageOption extends Option { @Override public void getLaunchArgument(LaunchConfig config, VMProperty property) { - config.addVariable(VAR_DRIVE, "\"file=" - + property.getConfiguration().getBaseInformation() - .getDiskImage().getCurrentDiskImage().getValue() - + ",if=virtio,index=1,cache.no-flush=on\""); - config.addVariable(VAR_SWAP, "\"file=" - + property.getConfiguration().getBaseInformation() - .getDiskImage().getSwapDiskImage().getValue() - + ",if=virtio,index=2\""); + config.addVariable(VAR_DRIVE, "\"file=${vms_path}/${vm_name}" + + "/emulimg-${vm_name}.x86" + + ",if=none,index=1,cache.no-flush=on\""); + config.addVariable(VAR_SWAP, "\"file=${vms_path}/${vm_name}" + + "/swap-${vm_name}.img" + + ",if=none,index=2\""); config.addQemuOption("-drive", varForm(VAR_DRIVE) + ",id=drive"); + config.addQemuOption("-device", "virtio-blk-pci,drive=drive"); config.addQemuOption("-drive", varForm(VAR_SWAP) + ",id=swap"); + config.addQemuOption("-device", "virtio-blk-pci,drive=swap"); } } -- 2.7.4