Skip to content
Snippets Groups Projects
  1. Jan 10, 2011
    • Iustin Pop's avatar
      Generalize the OpCode-should-be-in-mcpu test · 687c10d9
      Iustin Pop authored
      
      Currently, the unittest TestDispatchTable in mcpu unittest does a
      hard-coded approach to test whether an opcode should be included or
      not in the mcpu.Processor dispatch table. This is not flexible, so we
      replace it with two changes:
      
      - first, we do not return the base OpCode in opcodes.OP_MAPPING;
        rationale being that we shouldn't need to serialise or deserialise
        this opcode during normal operation
      - second, we add a new attribute WITH_LU (other name suggestions
        welcome) to the base opcode set to True, and we explicitly set it to
        False in OpTestDummy, thus automatic skipping of such LUs in the
        unittest (and in other places)
      
      To correct for the new behaviour, the tests in the opcode unittests
      are updated to include OpCode explicitly.
      
      Note: we also replace assert_ with assertTrue in the affected unittest
      (as assert_ is deprecated in 2.7).
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      687c10d9
    • Iustin Pop's avatar
      Document the intended use of (vm|master)_capable · bde65914
      Iustin Pop authored
      
      This patch adds the intended usage scenarios of these two flags.
      
      Additionally it corrects the tag valid charset.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      bde65914
    • Iustin Pop's avatar
      IAllocator: fix breakage for non-vm_capable nodes · a1cef11c
      Iustin Pop authored
      
      Currently, the IAllocator doesn't know that non-vm_capable nodes
      should not be queried for hypervisor/instance information.
      
      This patch updates the node data computation to generate basic info,
      but not the runtime data for such nodes. Furthermore, the
      documentation is updated to note that such nodes will node have
      runtime data.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      a1cef11c
  2. Jan 07, 2011
  3. Jan 06, 2011
  4. Jan 05, 2011
Loading