Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [dsdp-tml-dev] a more generic qemu service plugin

Title: RE: [dsdp-tml-dev] a more generic qemu service plugin
CC'ing the list.


From: Otavio Luiz Ferranti
Sent: terça-feira, 10 de junho de 2008 15:46
To: 'Yu-Fen Kuo'
Cc: 'dsdp-tml-dev@xxxxxxxxxxx'
Subject: RE: [dsdp-tml-dev] a more generic qemu service plugin

 
In the current implementation, the tml_devices.xml file is created and tml/device/devices entries are added ...
 
-> Only If there is at least one instance of a specific device.
-> When the Eclipse is being closed.
 
However, if you delete all instances of a given device ... the /tml/devices/device entry will not be removed.
 
Maybe in the future /tml/devices/device would support device properties, which would be different from instance properties.
 
These device properties would be changed by the end user through GUI (Device View).
 
<?xml version="1.0" encoding="UTF-8"?>
<tml>
  <instances>
    <instance name="DeviceName1" device_id="qemu1">
      <port>5000</port>
      <host>some_host_A</host>
      <display>:0.0</display>
    </instance>
    <instance name="DeviceName2" device_id="qemu1">
      <port>5000</port>
      <host>some_host_B</host>
      <display>:0.0</display>
    </instance>
    <instance name="DeviceName3" device_id="vmware1">
      <port>5000</port>
      <host>some_host_B</host>
      <display>:0.1</display>
    </instance>
  </instances>
  <devices>
    <device id="qemu1">
      <plugin>org.eclipse.tml.device.qemu.qemuDevice</plugin>
      <properties>
       <some_prop>some value 2</some_prop>
      </properties>

    </device>
    <device id="vmware1">
      <plugin>org.eclipse.tml.device.vmware.vmwareDevice</plugin>
      <properties>
       <some_prop>some value 1</some_prop>
      </properties>

    </device>
  </devices>
</tml>
 
Regards,
Otávio


From: Yu-Fen Kuo [mailto:ykuo@xxxxxxxxxx]
Sent: terça-feira, 10 de junho de 2008 14:58
To: Otavio Luiz Ferranti
Subject: RE: [dsdp-tml-dev] a more generic qemu service plugin

So when user is running with fresh workspace, the code should read the org.eclipse.tml.device Extension and write out all devices defined in the tml_devices,xml file? Since user can only create/edit/delete instances, so only the instances part is based on user’s action, but the devices part is based on plugin.xml?

 


From: Yu-Fen Kuo [mailto:ykuo@xxxxxxxxxx]
Sent: Tuesday, June 10, 2008 10:49 AM
To: 'Otavio Luiz Ferranti'
Subject: RE: [dsdp-tml-dev] a more generic qemu service plugin

 

Hi Otavio,

 

I haven’t received your sample tml_devices.xml file, but I am guessing it is something like:

 

<tml>

  <instances>

            <instance name=”instance_name1” device_id=”device_id1”/>

            <instance name=”instance_name2” device_id=”device_id1”/>

            <instance name=”instance_name3” device_id=”device_id2”/>

  </instances>

 

  <devices>

            <device id=”device_id1”>

                        <plugin>org.eclipse.tml.device.qemureact</plugin>

            </device>

            <device id=”device_id2”>

                        <plugin>org.eclipse.tml.device.qemuarm</plugin>

            </device>

 

  </devices>

 

</tml>

 

So the device_id attribute in the instance element has to be one of the id defined in device elements.

Are they any other elements or attributes I am missing?

 

Yufen


From: Otavio Luiz Ferranti [mailto:otavio.ferranti@xxxxxxxxxxxxxxx]
Sent: Tuesday, June 10, 2008 8:53 AM
To: Yu-Fen Kuo
Subject: RE: [dsdp-tml-dev] a more generic qemu service plugin

 

Meeting starting in few minutes ...

 

http://wiki.eclipse.org/DSDP/TML/Agenda10Jun08

 


From: Yu-Fen Kuo [mailto:ykuo@xxxxxxxxxx]
Sent: segunda-feira, 9 de junho de 2008 17:59
To: Otavio Luiz Ferranti
Subject: RE: [dsdp-tml-dev] a more generic qemu service plugin

 

Hi Otavio, would you consider to rewrite your code to use the

            org.xml.sax.*

            org.w3c.dom.*

            javax.xml.parsers.*

Libraries so users don’t need to extra libraries to run your code?

Yufen


Back to the top