Sun and Oracle Community Voices How to Buy Log In United States [Change] English

»  Spotlight Articles
»  Projects
»  Publications
»  People
»  Awards
»  Events
»  Downloads
»  Internships
»  Contrarian Minds
»  About Sun Labs
Project Guest VM: Developing Guest VM under Eclipse

Project Guest VM: Developing Guest VM under Eclipse

Introduction

First, make sure that gmake is on the PATH and the XEN_ROOT environment variable is set to the root of your Xen distribution before launching Eclipse.

Second, read the instructions for developing Maxine under Eclipse, and follow them up to the step "Building the boot image".

Then, similarly to the way you imported the Maxine projects into Eclipse, import the Guest VM projects, selecting the "guestvm" directory in the import stage.

Note that Guest VM has a mixture of projects in different "styles" owing to their independent development. Generally, GuestVMBase and GuestVM follow the Maxine code style and formatting. However, there are slight differences and these projects use GuestVM/checkstyle/guestvm_checks.xml.

Eclipse Lauch Configurations

There are several standard Eclipse launch configurations to run GuestVMBinaryImageGenerator:
  • GuestVMBinaryImageGenerator: Default build using "imagespecs/imagespec.io.net.tests"
  • GuestVMBinaryImageGenerator_Native: Just runs the final GuestVM native gmake step
  • GuestVMBinaryImageGenerator_TestAll: Builds an image that runs "all" tests, i.e., adds the "-testrun=test.com.sun.max.vm.testrun.all" argument
  • GuestVMBinaryImageGenerator_TestSome: Builds an image that runs "some" tests, i.e., adds the "-testrun=test.com.sun.max.vm.testrun.some" argument
  • GuestVMBinaryImageGenerator_TestSome_Gen: As previous but also generates specific tests with the "-testgen" argument.
  • GuestVMBinaryImageGenerator_JavaMonitor: Builds an image with the Java implementation of monitors.