Anything else is not supported by the loader.

Signed-off-by: Jan Kiszka <[email protected]>
---
 tools/jailhouse-cell-linux | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tools/jailhouse-cell-linux b/tools/jailhouse-cell-linux
index ecc24bd1..b776c24f 100755
--- a/tools/jailhouse-cell-linux
+++ b/tools/jailhouse-cell-linux
@@ -247,7 +247,8 @@ class X86:
     name = 'x86'

     def setup(self, args, config):
-        self._cpu_reset_address = config.cpu_reset_address
+        if config.cpu_reset_address != 0:
+            raise RuntimeError('x86 requires cpu_reset_address=0')

         self.kernel_image = args.kernel.read()

@@ -285,7 +286,7 @@ jailhouse cell load %s linux-loader.bin -a 0x%x %s
-a 0x%x ' %
         print('jailhouse cell start %s' % config.name)

     def loader_address(self):
-        return self._cpu_reset_address
+        return 0

     def params_address(self):
         return 0x10000
-- 
2.13.6

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to